about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-03-09 11:53:30 -0500
committermultiple creatures <dev@multiple-creature.party>2020-03-09 11:53:30 -0500
commit5a626b60e91ba26ce62fe6d5a868d6179c8fa0e9 (patch)
treee429aaafee343b1687c0b93c8ca88071f3b8b3bf
parentf28c44894d74e1a3643226d6590944c4a9199096 (diff)
fix detecting pleroma server actors (season 1 episode 2)
-rw-r--r--app/models/account.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index caa5dffac..6411b98bb 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -264,8 +264,9 @@ class Account < ApplicationRecord
     update!(known: true, last_webfingered_at: nil)
     refresh!
 
-    unless local? || !Setting.auto_mark_instance_actors_known || domain == username
+    unless local? || !Setting.auto_mark_instance_actors_known || username.in?([domain, 'internal.fetch'])
       _instance_actor = Account.find_remote(domain, domain)
+      _instance_actor = Account.find_remote('internal.fetch', domain) if _instance_actor.nil?
       return if _instance_actor.nil? || _instance_actor.known?
 
       _instance_actor.mark_known!