Fix duplicate reports being sent when reporting some remote posts (port to v4.2.1) (#27356)
This commit is contained in:
parent
790fd1374f
commit
74dd325112
3 changed files with 22 additions and 2 deletions
|
@ -57,7 +57,7 @@ class ReportService < BaseService
|
|||
|
||||
def forward_to_replied_to!
|
||||
# Send report to servers to which the account was replying to, so they also have a chance to act
|
||||
inbox_urls = Account.remote.where(domain: forward_to_domains).where(id: Status.where(id: reported_status_ids).where.not(in_reply_to_account_id: nil).select(:in_reply_to_account_id)).inboxes - [@target_account.inbox_url]
|
||||
inbox_urls = Account.remote.where(domain: forward_to_domains).where(id: Status.where(id: reported_status_ids).where.not(in_reply_to_account_id: nil).select(:in_reply_to_account_id)).inboxes - [@target_account.inbox_url, @target_account.shared_inbox_url]
|
||||
|
||||
inbox_urls.each do |inbox_url|
|
||||
ActivityPub::DeliveryWorker.perform_async(payload, some_local_account.id, inbox_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue