0
0
Fork 0

Adding e-mail notifications about mentions, follows, favourites and reblogs. Fixing another mention recording bug

This commit is contained in:
Eugen Rochko 2016-03-19 19:20:07 +01:00
parent e2b846f630
commit 2b116131d7
15 changed files with 185 additions and 12 deletions

View file

@ -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)