]> cat aescling's git repositories - mastodon.git/commitdiff
Do not try to send notification e-mails for reblogs if the reblog is not of a
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Mar 2016 12:25:33 +0000 (13:25 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Mar 2016 12:25:33 +0000 (13:25 +0100)
local account

app/services/process_feed_service.rb

index db69dfc6a28619487cef7444a9736e4e3af28481..14ef832048e0bab52689ad3b0efb34dc114de22f 100644 (file)
@@ -76,7 +76,7 @@ class ProcessFeedService < BaseService
 
     if !status.reblog.nil?
       status.save!
-      NotificationMailer.reblog(status.reblog, status.account).deliver_later
+      NotificationMailer.reblog(status.reblog, status.account).deliver_later if status.reblog.local?
     end
   end