Deduplicate IDs in relationships and familiar_followers APIs (#27982)
This commit is contained in:
parent
973597c6f1
commit
7877fcd83c
4 changed files with 31 additions and 6 deletions
|
@ -12,7 +12,7 @@ class Api::V1::Accounts::FamiliarFollowersController < Api::BaseController
|
|||
private
|
||||
|
||||
def set_accounts
|
||||
@accounts = Account.without_suspended.where(id: account_ids).select('id, hide_collections').index_by(&:id).values_at(*account_ids).compact
|
||||
@accounts = Account.without_suspended.where(id: account_ids).select('id, hide_collections')
|
||||
end
|
||||
|
||||
def familiar_followers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue