diff options
Diffstat (limited to 'app/services/process_feed_service.rb')
-rw-r--r-- | app/services/process_feed_service.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index ccdf07cc1..504d58aed 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -51,11 +51,11 @@ class ProcessFeedService < BaseService unless mentioned_account.nil? mentioned_account.mentions.where(status: status).first_or_create(status: status) + NotificationMailer.mention(mentioned_account, status).deliver_later end end end - fan_out_on_write_service.(status) end end @@ -74,7 +74,10 @@ class ProcessFeedService < BaseService status.reblog = fetch_remote_status(entry) end - status.save! unless status.reblog.nil? + if !status.reblog.nil? + status.save! + NotificationMailer.reblog(status.reblog, status.account).deliver_later + end end def add_reply!(entry, status) |