From ada1c49cd8bf24dd266414fe7759d4d8cd93a680 Mon Sep 17 00:00:00 2001 From: Humblr <45624081+Humblr@users.noreply.github.com> Date: Sun, 16 Dec 2018 04:17:54 +0000 Subject: [PATCH] Disables none account related emails. Disables Mastodon from sending notification emails of new followers, follower requests, boots and favs. --- app/mailers/notification_mailer.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index b4584429628ce..f9a3d20f2fee6 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -13,7 +13,6 @@ def mention(recipient, notification) locale_for_account(@me) do thread_by_conversation(@status.conversation) - mail to: @me.user.email, subject: I18n.t('notification_mailer.mention.subject', name: @status.account.acct) end end @@ -24,7 +23,6 @@ def follow(recipient, notification) return if @me.user.disabled? locale_for_account(@me) do - mail to: @me.user.email, subject: I18n.t('notification_mailer.follow.subject', name: @account.acct) end end @@ -37,7 +35,6 @@ def favourite(recipient, notification) locale_for_account(@me) do thread_by_conversation(@status.conversation) - mail to: @me.user.email, subject: I18n.t('notification_mailer.favourite.subject', name: @account.acct) end end @@ -50,7 +47,7 @@ def reblog(recipient, notification) locale_for_account(@me) do thread_by_conversation(@status.conversation) - mail to: @me.user.email, subject: I18n.t('notification_mailer.reblog.subject', name: @account.acct) + end end @@ -61,7 +58,6 @@ def follow_request(recipient, notification) return if @me.user.disabled? locale_for_account(@me) do - mail to: @me.user.email, subject: I18n.t('notification_mailer.follow_request.subject', name: @account.acct) end end @@ -74,8 +70,6 @@ def digest(recipient, **opts) return if @me.user.disabled? || @notifications.empty? locale_for_account(@me) do - mail to: @me.user.email, - subject: I18n.t(:subject, scope: [:notification_mailer, :digest], count: @notifications.size) end end