Fix: #303 限定投稿のスタンプがストリーミングできていない (#481)

This commit is contained in:
KMY(雪あすか) 2024-01-18 10:13:32 +09:00 committed by KMY
parent 0fcf61ee0e
commit ef3eb48932

View file

@ -7,6 +7,8 @@ module AccountScope
scope_local
when :private
scope_account_local_followers(status.account)
when :limited
scope_status_all_mentioned(status)
else
scope_status_mentioned(status)
end
@ -24,6 +26,10 @@ module AccountScope
Account.local.where(id: status.active_mentions.select(:account_id)).reorder(nil)
end
def scope_status_all_mentioned(status)
Account.local.where(id: status.mentions.select(:account_id)).reorder(nil)
end
# TODO: not work
def scope_list_following_account(account)
account.lists_for_local_distribution.select(:id).reorder(nil)