Added search for posts with the embedded flag enabled

This commit is contained in:
BrokenEagle
2020-01-23 03:29:12 +00:00
parent 9d71c77524
commit d9e5b94838
3 changed files with 14 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ class Tag < ApplicationRecord
-locked locked width height mpixels ratio score favcount filesize source
-source id -id date age order limit -status status tagcount parent -parent
child pixiv_id pixiv search upvote downvote filetype -filetype flagger
-flagger appealer -appealer disapproval -disapproval
-flagger appealer -appealer disapproval -disapproval embedded
] + TagCategory.short_name_list.map {|x| "#{x}tags"} + COUNT_METATAGS + COUNT_METATAG_SYNONYMS
SUBQUERY_METATAGS = %w[commenter comm noter noteupdater artcomm flagger -flagger appealer -appealer]
@@ -735,6 +735,9 @@ class Tag < ApplicationRecord
when "status"
q[:status] = g2.downcase
when "embedded"
q[:embedded] = g2.downcase
when "filetype"
q[:filetype] = g2.downcase