Skip to content
Snippets Groups Projects
Unverified Commit 54f0f1b9 authored by nightpool's avatar nightpool Committed by GitHub
Browse files

Skip Webfinger cache during migrations as well (#19883)

parent 8c81db5a
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ class AccountMigration < ApplicationRecord ...@@ -58,7 +58,7 @@ class AccountMigration < ApplicationRecord
private private
def set_target_account 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 rescue Webfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::Error
# Validation will take care of it # Validation will take care of it
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment