Fix performance of follow import (#13836)

This commit is contained in:
Takeshi Umeda
2020-06-09 17:26:58 +09:00
committed by GitHub
parent 72a7cfaa39
commit d890abfcab
4 changed files with 44 additions and 2 deletions

View File

@ -112,6 +112,8 @@ class ResolveAccountService < BaseService
end
def webfinger_update_due?
return false if @options[:check_delivery_availability] && !DeliveryFailureTracker.available?(@domain)
@account.nil? || ((!@options[:skip_webfinger] || @account.ostatus?) && @account.possibly_stale?)
end