Skip to content
Snippets Groups Projects
Unverified Commit 9381a7d9 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

See also: #6837, #6667
parent a5c6c748
No related branches found
Tags v2.3.2
No related merge requests found
......@@ -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
......
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