mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 17:38:07 +01:00
Do not ignore federated reports targetting already-reported accounts (#9534)
This commit is contained in:
parent
6a7a36fcdd
commit
b2f4114550
1 changed files with 0 additions and 2 deletions
|
@ -8,8 +8,6 @@ class ActivityPub::Activity::Flag < ActivityPub::Activity
|
||||||
target_statuses_by_account = object_uris.map { |uri| status_from_uri(uri) }.compact.select(&:local?).group_by(&:account_id)
|
target_statuses_by_account = object_uris.map { |uri| status_from_uri(uri) }.compact.select(&:local?).group_by(&:account_id)
|
||||||
|
|
||||||
target_accounts.each do |target_account|
|
target_accounts.each do |target_account|
|
||||||
next if Report.where(account: @account, target_account: target_account).exists?
|
|
||||||
|
|
||||||
target_statuses = target_statuses_by_account[target_account.id]
|
target_statuses = target_statuses_by_account[target_account.id]
|
||||||
|
|
||||||
ReportService.new.call(
|
ReportService.new.call(
|
||||||
|
|
Loading…
Reference in a new issue