Use enum-generated public_visibility
scope on Status (#28156)
This commit is contained in:
parent
19cbadfbd6
commit
0bc17a3d48
5 changed files with 5 additions and 6 deletions
|
@ -61,7 +61,7 @@ class PublicFeed
|
|||
end
|
||||
|
||||
def public_scope
|
||||
Status.with_public_visibility.joins(:account).merge(Account.without_suspended.without_silenced)
|
||||
Status.public_visibility.joins(:account).merge(Account.without_suspended.without_silenced)
|
||||
end
|
||||
|
||||
def local_only_scope
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue