about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-27 16:08:56 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-27 16:08:56 -0600
commit95ce6729830f92d15c619ea2f4d1e125ffe7209f (patch)
treefd8ba4d7db1769cd1052f2714938bb8a17502b9b /app/models/account.rb
parente0baa1e2aacaccf222deace2aa67d63496137536 (diff)
detect pleroma server actors when auto-learning trusted accounts in graylist mode
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index cc7c5be42..07896fac6 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -494,7 +494,7 @@ class Account < ApplicationRecord
   end
 
   def service?
-    @_is_service ||= actor_type == "Application" || actor_type == "Service" || username == "relay" || username == domain
+    @_is_service ||= actor_type == "Application" || actor_type == "Service" || username == "relay" || username.in?([domain, 'internal.fetch'])
   end
 
   def can_be_marked_known?