Add visibility: and is:sensitive filters

This commit is contained in:
Vyr Cossont 2022-12-30 15:58:34 -08:00
parent bf34294fcb
commit a6ee508eb7
2 changed files with 2 additions and 1 deletions

View file

@ -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'

View file

@ -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