Refactor local-URI-to-account resolving (#34349)
This commit is contained in:
parent
4bbe33e0bd
commit
dd23ba9c83
5 changed files with 50 additions and 16 deletions
|
@ -30,10 +30,7 @@ class ActivityPub::SynchronizeFollowersService < BaseService
|
|||
# Account record, and should we not do that, we should have sent a Delete.
|
||||
# In any case there is not much we can do if that occurs.
|
||||
|
||||
# TODO: this will need changes when switching to numeric IDs
|
||||
|
||||
usernames = items.filter_map { |uri| ActivityPub::TagManager.instance.uri_to_local_id(uri, :username)&.downcase }
|
||||
Account.local.with_username(usernames)
|
||||
ActivityPub::TagManager.instance.uris_to_local_accounts(items)
|
||||
end
|
||||
|
||||
def remove_unexpected_local_followers!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue