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
|
end
|
||||||
|
|
||||||
case prefix
|
case prefix
|
||||||
when 'domain', 'is', 'has', 'lang'
|
when 'domain', 'is', 'has', 'lang', 'visibility'
|
||||||
@filter = prefix.to_s
|
@filter = prefix.to_s
|
||||||
@term = term
|
@term = term
|
||||||
when 'from'
|
when 'from'
|
||||||
|
|
|
@ -179,6 +179,7 @@ class Status < ApplicationRecord
|
||||||
keywords << :local if local?
|
keywords << :local if local?
|
||||||
keywords << :local_only if local_only
|
keywords << :local_only if local_only
|
||||||
keywords << :reply if reply?
|
keywords << :reply if reply?
|
||||||
|
keywords << :sensitive if sensitive?
|
||||||
keywords
|
keywords
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue