Add visibility: and is:sensitive filters
This commit is contained in:
parent
bf34294fcb
commit
a6ee508eb7
2 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,7 @@ class SearchQueryTransformer < Parslet::Transform
|
|||
end
|
||||
|
||||
case prefix
|
||||
when 'domain', 'is', 'has', 'lang'
|
||||
when 'domain', 'is', 'has', 'lang', 'visibility'
|
||||
@filter = prefix.to_s
|
||||
@term = term
|
||||
when 'from'
|
||||
|
|
|
@ -179,6 +179,7 @@ class Status < ApplicationRecord
|
|||
keywords << :local if local?
|
||||
keywords << :local_only if local_only
|
||||
keywords << :reply if reply?
|
||||
keywords << :sensitive if sensitive?
|
||||
keywords
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue