about summary refs log tree commit diff
path: root/app/workers/feed_insert_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-03-04 01:06:33 +0100
committerGitHub <noreply@github.com>2022-03-04 01:06:33 +0100
commit2ea754b8610b50cc93aeb1921ecdf7415efaf17e (patch)
tree28906a19f927a53bbe1a1076c74d369a781e3e81 /app/workers/feed_insert_worker.rb
parent04c3ac896a6054b8158cba06daa9f333f890efd4 (diff)
Fix duplicate notifications being possible after poll expiration (#17697)
Diffstat (limited to 'app/workers/feed_insert_worker.rb')
-rw-r--r--app/workers/feed_insert_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/feed_insert_worker.rb b/app/workers/feed_insert_worker.rb
index 6e3472d57..40bc9cb6e 100644
--- a/app/workers/feed_insert_worker.rb
+++ b/app/workers/feed_insert_worker.rb
@@ -66,7 +66,7 @@ class FeedInsertWorker
   end
 
   def perform_notify
-    NotifyService.new.call(@follower, :status, @status)
+    LocalNotificationWorker.perform_async(@follower.id, @status.id, 'Status', 'status')
   end
 
   def update?