Fix listed up muting users in status emoji_reactioned_by

This commit is contained in:
KMY 2023-04-09 12:36:22 +09:00
parent 55f59b4343
commit 19e89cd031

View file

@ -16,14 +16,15 @@ class Api::V1::Statuses::EmojiReactionedByAccountsController < Api::BaseControll
def load_accounts
scope = default_accounts
# scope = scope.where.not(account_id: current_account.excluded_from_timeline_account_ids) unless current_account.nil?
scope = scope.where.not(account_id: current_account.excluded_from_timeline_account_ids) unless current_account.nil?
scope.merge(paginated_emoji_reactions).to_a
end
def default_accounts
EmojiReaction
.where(status_id: @status.id)
#.where(account: { suspended_at: nil })
.includes(:account)
.where(account: { suspended_at: nil })
end
def paginated_emoji_reactions