Use username/domain to match existing accounts in ActivityPub (#6842)
See also: #6837, #6667lolsob-rspec
parent
ca370217ad
commit
ab96a9ff11
|
@ -16,7 +16,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
|||
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
@account = Account.find_by(uri: @uri)
|
||||
@account = Account.find_remote(@username, @domain)
|
||||
@old_public_key = @account&.public_key
|
||||
@old_protocol = @account&.protocol
|
||||
|
||||
|
|
Loading…
Reference in New Issue