diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-26 23:17:15 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-26 23:44:37 -0500 |
commit | 8b0df8951190892126ee7492d341dfeee9e41f6f (patch) | |
tree | c6ecbc3376240e6cca5db37f01d9534d413f9f5e /app/lib | |
parent | 9acfa07ac9e7c191751598c646131a2302c8df46 (diff) |
Limit incoming posts with unreachable participants
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 2 |
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 |