]> cat aescling's git repositories - mastodon.git/commitdiff
Do not ignore federated reports targetting already-reported accounts (#9534)
authorThibG <thib@sitedethib.com>
Sun, 30 Dec 2018 17:58:51 +0000 (18:58 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 30 Dec 2018 17:58:51 +0000 (18:58 +0100)
app/lib/activitypub/activity/flag.rb

index 92e59bb81a11a2435a88564c47e1b64a605dcaa0..0d10d6c3c93557fcab03cf387975c346eae4a750 100644 (file)
@@ -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(