Follow requests send e-mail notifications, but are excluded from notifications API
Better initial state for unlisted/nsfw toggles
This commit is contained in:
parent
3689c119f0
commit
2146ac91a0
11 changed files with 48 additions and 12 deletions
|
@ -40,4 +40,13 @@ class NotificationMailer < ApplicationMailer
|
|||
mail to: @me.user.email, subject: I18n.t('notification_mailer.reblog.subject', name: @account.acct)
|
||||
end
|
||||
end
|
||||
|
||||
def follow_request(recipient, notification)
|
||||
@me = recipient
|
||||
@account = notification.from_account
|
||||
|
||||
I18n.with_locale(@me.user.locale || I18n.default_locale) do
|
||||
mail to: @me.user.email, subject: I18n.t('notification_mailer.follow_request.subject', name: @account.acct)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue