Fix #3715: Provide any/none modifiers for pixiv: metatag

This commit is contained in:
evazion
2018-08-22 00:25:38 -05:00
parent 8cc393183e
commit 9a0f37e359
3 changed files with 29 additions and 5 deletions

View File

@@ -763,7 +763,11 @@ class Tag < ApplicationRecord
q[:filetype_neg] = g2.downcase
when "pixiv_id", "pixiv"
q[:pixiv_id] = parse_helper(g2)
if g2.downcase == "any" || g2.downcase == "none"
q[:pixiv_id] = g2.downcase
else
q[:pixiv_id] = parse_helper(g2)
end
when "upvote"
if CurrentUser.user.is_moderator?