about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-15 10:42:01 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-15 10:42:01 -0600
commit13de392fc5769114015bb6780dce41e803fa6946 (patch)
treebc85ee77a51a0cf324955a6cbde0e15d0e850503 /app/lib/activitypub
parentd1ea02408be8ecaa2b67ff8f219674639999ebba (diff)
add admin option to toggle whether service/app accounts should be auto-trusted in graylist mode + give options better descriptions
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/activity.rb3
1 files changed, 2 insertions, 1 deletions
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!