]> cat aescling's git repositories - mastodon.git/commit
Improve e-mail digest (#9689)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 2 Jan 2019 09:47:32 +0000 (10:47 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Jan 2019 09:47:32 +0000 (10:47 +0100)
commit66436d08959998be20c6c6bf631177d8c1f3e0d1
treee9d8fd6b53006cbf2c12418a9ebfa6e46a1be617
parentdc84899fffbee254454e88f3d78848eb6c51beeb
Improve e-mail digest (#9689)

- Reduce time-to-digest from 20 to 7 days
- Fetch mentions starting from +1 day since last login
- Fix case when last login is more recent than last e-mail
- Do not render all mentions, only 40, but show number in subject
- Do not send digest to moved accounts
- Do send digest to silenced accounts
app/mailers/notification_mailer.rb
app/models/account.rb
app/models/user.rb
app/views/notification_mailer/digest.html.haml
app/views/notification_mailer/digest.text.erb
app/workers/scheduler/email_scheduler.rb
spec/mailers/notification_mailer_spec.rb