diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-04 01:06:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 01:06:33 +0100 |
commit | 2ea754b8610b50cc93aeb1921ecdf7415efaf17e (patch) | |
tree | 28906a19f927a53bbe1a1076c74d369a781e3e81 /app/services/favourite_service.rb | |
parent | 04c3ac896a6054b8158cba06daa9f333f890efd4 (diff) |
Fix duplicate notifications being possible after poll expiration (#17697)
Diffstat (limited to 'app/services/favourite_service.rb')
-rw-r--r-- | app/services/favourite_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index 0ca0081b48a..dc7fe88552a 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -31,7 +31,7 @@ class FavouriteService < BaseService status = favourite.status if status.account.local? - NotifyService.new.call(status.account, :favourite, favourite) + LocalNotificationWorker.perform_async(status.account_id, favourite.id, 'Favourite', 'favourite') elsif status.account.activitypub? ActivityPub::DeliveryWorker.perform_async(build_json(favourite), favourite.account_id, status.account.inbox_url) end |