mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 11:38:07 +01:00
66436d0895
- 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
15 lines
635 B
Text
15 lines
635 B
Text
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
|
|
|
|
<%= raw t('notification_mailer.digest.body', since: l(@me.user_current_sign_in_at || @since), instance: root_url) %>
|
|
<% @notifications.each do |notification| %>
|
|
|
|
* <%= raw t('notification_mailer.digest.mention', name: notification.from_account.acct) %>
|
|
|
|
<%= raw Formatter.instance.plaintext(notification.target_status) %>
|
|
|
|
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{notification.target_status.id}") %>
|
|
<% end %>
|
|
<% if @follows_since > 0 %>
|
|
|
|
<%= raw t('notification_mailer.digest.new_followers_summary', count: @follows_since) %>
|
|
<% end %>
|