diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-15 10:42:01 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-15 10:42:01 -0600 |
commit | 13de392fc5769114015bb6780dce41e803fa6946 (patch) | |
tree | bc85ee77a51a0cf324955a6cbde0e15d0e850503 /app/lib | |
parent | d1ea02408be8ecaa2b67ff8f219674639999ebba (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')
-rw-r--r-- | app/lib/activitypub/activity.rb | 3 |
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! |