# Discourse Activity Summaries for New Users Created via API

**URL:** <https://meta.discourse.org/t/discourse-activity-summaries-for-new-users-created-via-api/68433>\
**Category:** Development\
**Tags:** activity-summary\
**Created:** [Août 20, 2017, 6:15 UTC](https://meta.discourse.org/t/discourse-activity-summaries-for-new-users-created-via-api/68433 "2017-08-20T18:15:26Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [Août 22, 2017, 6:40 UTC](https://meta.discourse.org/t/discourse-activity-summaries-for-new-users-created-via-api/68433/10 "2017-08-22T18:40:41Z")

</div>

[Higher priority](https://github.com/discourse/discourse/blob/master/app/mailers/user_notifications.rb#L81):

```plaintext
min_date = opts[:since] || user.last_emailed_at || user.last_seen_at || 1.month.ago

```

So if we have a last\_emailed\_at date, then we use that as the cut-off for the earliest post to include in the summary email.

I can’t find logic that would exclude users based on whether their last seen date is null or not… It might be there, but I can’t see why that would be.

---

_[View the full topic](https://meta.discourse.org/t/discourse-activity-summaries-for-new-users-created-via-api/68433)._
