Adding e-mail notifications about mentions, follows, favourites and reblogs. Fixing another mention recording bug
This commit is contained in:
parent
e2b846f630
commit
2b116131d7
15 changed files with 185 additions and 12 deletions
|
@ -6,8 +6,13 @@ class FavouriteService < BaseService
|
|||
def call(account, status)
|
||||
favourite = Favourite.create!(account: account, status: status)
|
||||
account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url])
|
||||
return favourite if status.local?
|
||||
send_interaction_service.(favourite.stream_entry, status.account)
|
||||
|
||||
if status.local?
|
||||
NotificationMailer.favourite(status, account).deliver_later
|
||||
else
|
||||
send_interaction_service.(favourite.stream_entry, status.account)
|
||||
end
|
||||
|
||||
favourite
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue