From 13de392fc5769114015bb6780dce41e803fa6946 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 15 Feb 2020 10:42:01 -0600 Subject: add admin option to toggle whether service/app accounts should be auto-trusted in graylist mode + give options better descriptions --- app/lib/activitypub/activity.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/lib') diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 30c854eda..27918883f 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -191,7 +191,8 @@ class ActivityPub::Activity def known?(account = nil) account = @account if account.nil? return true if account.known? - account.passive_relationships.exists? + + !account.service? && account.passive_relationships.exists? end def reject_payload! -- cgit