Merge tag 'v3.1.2' into hometown-dev

This commit is contained in:
Darius Kazemi
2020-03-02 10:01:54 -08:00
33 changed files with 571 additions and 394 deletions

View File

@ -20,9 +20,10 @@ class ActivityPub::ProcessAccountService < BaseService
RedisLock.acquire(lock_options) do |lock|
if lock.acquired?
@account = Account.find_remote(@username, @domain)
@old_public_key = @account&.public_key
@old_protocol = @account&.protocol
@account = Account.remote.find_by(uri: @uri) if @options[:only_key]
@account ||= Account.find_remote(@username, @domain)
@old_public_key = @account&.public_key
@old_protocol = @account&.protocol
create_account if @account.nil?
update_account