diff options
author | ThibG <thib@sitedethib.com> | 2018-12-30 18:58:51 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-12-30 18:58:51 +0100 |
commit | b2f4114550d8cc3af929736c122d69b6e76fcea8 (patch) | |
tree | 63e3e8a1cb3f1a5e08dc7376cf65054f1fd31b5d /app/lib | |
parent | 6a7a36fcddd136d9e1fddf8655520932eac3c2a6 (diff) |
Do not ignore federated reports targetting already-reported accounts (#9534)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activitypub/activity/flag.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/lib/activitypub/activity/flag.rb b/app/lib/activitypub/activity/flag.rb index 92e59bb81..0d10d6c3c 100644 --- a/app/lib/activitypub/activity/flag.rb +++ b/app/lib/activitypub/activity/flag.rb @@ -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_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] ReportService.new.call( |