about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-26 23:17:15 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-26 23:44:37 -0500
commit8b0df8951190892126ee7492d341dfeee9e41f6f (patch)
treec6ecbc3376240e6cca5db37f01d9534d413f9f5e /app/lib
parent9acfa07ac9e7c191751598c646131a2302c8df46 (diff)
Limit incoming posts with unreachable participants
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/activity/create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index 6dbd8769c..c74ca1d58 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -279,7 +279,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
     account = account_from_uri(tag['href'])
     account = ActivityPub::FetchRemoteAccountService.new.call(tag['href']) if account.nil?
 
-    return if account.nil?
+    return (@params[:visibility] = :limited) if account.nil? || account.suspended?
 
     @mentions << Mention.new(account: account, silent: false)
   end