diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-04-16 22:01:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 22:01:05 +0200 |
commit | dde8739020eb201d1c9a31da116e3e771f1439b8 (patch) | |
tree | f9a95bc119e3c2105d6c642088b2de48f020f90c /app/lib | |
parent | baed52c2a7d8f91bae3c69150005fc528387785c (diff) |
Fix reports of already suspended accounts being recorded (#16047)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activitypub/activity/flag.rb | 2 |
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, |