Fix duplicate notifications being possible after poll expiration (#17697)
This commit is contained in:
parent
04c3ac896a
commit
2ea754b861
8 changed files with 13 additions and 11 deletions
|
@ -35,7 +35,7 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
|
|||
|
||||
def distribute
|
||||
# Notify the author of the original status if that status is local
|
||||
NotifyService.new.call(@status.reblog.account, :reblog, @status) if reblog_of_local_account?(@status) && !reblog_by_following_group_account?(@status)
|
||||
LocalNotificationWorker.perform_async(@status.reblog.account_id, @status.id, 'Status', 'reblog') if reblog_of_local_account?(@status) && !reblog_by_following_group_account?(@status)
|
||||
|
||||
# Distribute into home and list feeds
|
||||
::DistributionWorker.perform_async(@status.id) if @options[:override_timestamps] || @status.within_realtime_window?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue