about summary refs log tree commit diff
path: root/app/lib/activitypub/activity
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-16 22:01:05 +0200
committerGitHub <noreply@github.com>2021-04-16 22:01:05 +0200
commitdde8739020eb201d1c9a31da116e3e771f1439b8 (patch)
treef9a95bc119e3c2105d6c642088b2de48f020f90c /app/lib/activitypub/activity
parentbaed52c2a7d8f91bae3c69150005fc528387785c (diff)
Fix reports of already suspended accounts being recorded (#16047)
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r--app/lib/activitypub/activity/flag.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/flag.rb b/app/lib/activitypub/activity/flag.rb
index 8dfc76f0a..b0443849a 100644
--- a/app/lib/activitypub/activity/flag.rb
+++ b/app/lib/activitypub/activity/flag.rb
@@ -10,6 +10,8 @@ class ActivityPub::Activity::Flag < ActivityPub::Activity
     target_accounts.each do |target_account|
       target_statuses = target_statuses_by_account[target_account.id]
 
+      next if target_account.suspended?
+
       ReportService.new.call(
         @account,
         target_account,