]> cat aescling's git repositories - mastodon.git/commit
Fix resolving accounts sometimes creating duplicate records for a given AP id (#15364)
authorThibG <thib@sitedethib.com>
Fri, 18 Dec 2020 22:26:26 +0000 (23:26 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Dec 2020 22:26:26 +0000 (23:26 +0100)
commita60d9335d8e7c4aa070f081719ee2a438b0e0202
tree1ec5e4628240a3eb7bf3d16e310adb48775de05d
parent052249588b77fe3d8e29658076eb385f64511d6b
Fix resolving accounts sometimes creating duplicate records for a given AP id (#15364)

* Fix ResolveAccountService accepting mismatching acct: URI

* Set attributes that should be updated regardless of suspension

* Fix key fetching

* Automatically merge remote accounts with duplicate `uri`

* Add tests

* Add "tootctl accounts fix-duplicates"

Finds duplicate accounts sharing a same ActivityPub `id`, re-fetch them and
merge them under the canonical `acct:` URI.

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/services/activitypub/fetch_remote_account_service.rb
app/services/activitypub/process_account_service.rb
app/services/resolve_account_service.rb
app/workers/account_merging_worker.rb [new file with mode: 0644]
lib/mastodon/accounts_cli.rb
spec/services/resolve_account_service_spec.rb