From a367ff86982987aa0573d9b375000a909223c3ad Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 12 Oct 2019 22:05:06 -0500 Subject: graylist (reject unknown) federation & known account auto-learning finally have toggle switches in site settings --- app/lib/activitypub/activity/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib/activitypub/activity') diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index e7fe19152..4367344ab 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -9,7 +9,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity if @options[:announced_by].nil? return reject_payload! if !@options[:requested] && rejecting_unknown? else - @account.mark_known! if known?(@options[:announced_by]) + @account.mark_known! if Setting.auto_mark_known && known?(@options[:announced_by]) end end -- cgit