From 5a626b60e91ba26ce62fe6d5a868d6179c8fa0e9 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 9 Mar 2020 11:53:30 -0500 Subject: fix detecting pleroma server actors (season 1 episode 2) --- app/models/account.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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! -- cgit