Browse Source

Skip Webfinger cache during migrations as well (#19883)

pull/1253/head
nightpool 3 years ago committed by GitHub
parent
commit
54f0f1b9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/account_migration.rb

2
app/models/account_migration.rb

@ -58,7 +58,7 @@ class AccountMigration < ApplicationRecord
private
def set_target_account
self.target_account = ResolveAccountService.new.call(acct)
self.target_account = ResolveAccountService.new.call(acct, skip_cache: true)
rescue Webfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::Error
# Validation will take care of it
end

Loading…
Cancel
Save