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
|
@ -4,7 +4,7 @@ module Status::SearchConcern
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
scope :indexable, -> { without_reblogs.where(visibility: :public).joins(:account).where(account: { indexable: true }) }
|
||||
scope :indexable, -> { without_reblogs.public_visibility.joins(:account).where(account: { indexable: true }) }
|
||||
end
|
||||
|
||||
def searchable_by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue