diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-26 00:58:23 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-26 00:58:23 -0500 |
commit | 38e44162a62ef04b8cab8e705671aa68e7478194 (patch) | |
tree | a9fe77cc47bf2a2cdcd9cb5946f508c22f905bc0 /app/lib/activitypub | |
parent | 19eb53863b0c396c49bfe4a42c8b284731a5c97b (diff) |
do not limit by `known` when `reject_unknown` is not set
Diffstat (limited to 'app/lib/activitypub')
-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 59a962fe7..a2353bc3d 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -139,7 +139,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity account = account_from_uri(audience) if account.nil? - if @options[:requested] + if !rejecting_unknown? || @options[:requested] @potential_scope_leak = true unless Account.where(followers_url: audience, suspended_at: nil).exists? else @potential_scope_leak = true unless Account.where(followers_url: audience, known: true, suspended_at: nil).exists? |