0
0
Fork 0

Move controller->request specs for api/v1/statuses/* (#28818)

This commit is contained in:
Matt Jankowski 2024-01-22 06:58:54 -05:00 committed by GitHub
parent 5efb00ddb8
commit 7ecf7f5403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69 additions and 48 deletions

View file

@ -14,7 +14,7 @@ class Api::V1::Statuses::RebloggedByAccountsController < Api::V1::Statuses::Base
def load_accounts
scope = default_accounts
scope = scope.where.not(id: current_account.excluded_from_timeline_account_ids) unless current_account.nil?
scope = scope.not_excluded_by_account(current_account) unless current_account.nil?
scope.merge(paginated_statuses).to_a
end