parent
5bef882463
commit
6aede85a2d
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,8 @@ module AccountScope
|
||||||
scope_local
|
scope_local
|
||||||
when :private
|
when :private
|
||||||
scope_account_local_followers(status.account)
|
scope_account_local_followers(status.account)
|
||||||
|
when :limited
|
||||||
|
scope_status_all_mentioned(status)
|
||||||
else
|
else
|
||||||
scope_status_mentioned(status)
|
scope_status_mentioned(status)
|
||||||
end
|
end
|
||||||
|
@ -24,6 +26,10 @@ module AccountScope
|
||||||
Account.local.where(id: status.active_mentions.select(:account_id)).reorder(nil)
|
Account.local.where(id: status.active_mentions.select(:account_id)).reorder(nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def scope_status_all_mentioned(status)
|
||||||
|
Account.local.where(id: status.mentions.select(:account_id)).reorder(nil)
|
||||||
|
end
|
||||||
|
|
||||||
# TODO: not work
|
# TODO: not work
|
||||||
def scope_list_following_account(account)
|
def scope_list_following_account(account)
|
||||||
account.lists_for_local_distribution.select(:id).reorder(nil)
|
account.lists_for_local_distribution.select(:id).reorder(nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue