Avoid sending some ActivityPub payloads if the receiver will get them through distribution (#4739)
This commit is contained in:
parent
c2980d5b17
commit
390bfec6da
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class ReblogService < BaseService
|
|||
NotifyService.new.call(reblogged_status.account, reblog)
|
||||
elsif reblogged_status.account.ostatus?
|
||||
NotificationWorker.perform_async(stream_entry_to_xml(reblog.stream_entry), reblog.account_id, reblogged_status.account_id)
|
||||
elsif reblogged_status.account.activitypub?
|
||||
elsif reblogged_status.account.activitypub? && !reblogged_status.account.following?(reblog.account)
|
||||
ActivityPub::DeliveryWorker.perform_async(build_json(reblog), reblog.account_id, reblogged_status.account.inbox_url)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue