parent
0fcf61ee0e
commit
ef3eb48932
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue