Add Account.matches_uri_prefix
scope and use in activitypub/followers_synchronizations controller (#28820)
This commit is contained in:
parent
7ecf7f5403
commit
18004bf227
3 changed files with 27 additions and 1 deletions
|
@ -24,7 +24,7 @@ class ActivityPub::FollowersSynchronizationsController < ActivityPub::BaseContro
|
|||
end
|
||||
|
||||
def set_items
|
||||
@items = @account.followers.where(Account.arel_table[:uri].matches("#{Account.sanitize_sql_like(uri_prefix)}/%", false, true)).or(@account.followers.where(uri: uri_prefix)).pluck(:uri)
|
||||
@items = @account.followers.matches_uri_prefix(uri_prefix).pluck(:uri)
|
||||
end
|
||||
|
||||
def collection_presenter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue