From 38e44162a62ef04b8cab8e705671aa68e7478194 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 26 Aug 2019 00:58:23 -0500 Subject: do not limit by `known` when `reject_unknown` is not set --- app/lib/activitypub/activity/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib/activitypub') 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? -- cgit