]> cat aescling's git repositories - mastodon.git/commit
Fix followers synchronization mechanism not working when URI has empty path (#16510)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 11 Aug 2021 15:48:42 +0000 (17:48 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 15:48:42 +0000 (17:48 +0200)
commit5efb1ff337e7c1c090eb9c43dc3ba5b284302460
tree69bc9aaed828592a56c91944120e331b35ab9b50
parent13b08610a08faf2909f7c871be62da955d9293d3
Fix followers synchronization mechanism not working when URI has empty path (#16510)

* Fix followers synchronization mechanism not working when URI has empty path

To my knowledge, there is no current implementation on the fediverse
that can use bare domains (e.g., actor is at https://example.org instead of
something like https://example.org/actor) that also plans to support the
followers synchronization mechanism. However, Mastodon's current implementation
would exclude such accounts from followers list.

Also adds tests and rename them to reflect the proper method names.

* Move url prefix regexp to its own constant
app/models/account.rb
app/models/concerns/account_interactions.rb
app/workers/activitypub/delivery_worker.rb
spec/models/concerns/account_interactions_spec.rb
spec/workers/activitypub/delivery_worker_spec.rb