Use username/domain to match existing accounts in ActivityPub (#6842)

See also: #6837, #6667
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2018-03-20 14:57:46 +01:00 committed by GitHub
parent a5c6c748e0
commit 9381a7d9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class ActivityPub::ProcessAccountService < BaseService
RedisLock.acquire(lock_options) do |lock| RedisLock.acquire(lock_options) do |lock|
if lock.acquired? if lock.acquired?
@account = Account.find_by(uri: @uri) @account = Account.find_remote(@username, @domain)
@old_public_key = @account&.public_key @old_public_key = @account&.public_key
@old_protocol = @account&.protocol @old_protocol = @account&.protocol