Fix #3387: Safebooru: Two tag searches fail for members.

Makes the `rating:s` and `-status:deleted` tags not count against the
tag limit.
This commit is contained in:
evazion
2017-11-19 20:27:30 -06:00
parent 05dea309b2
commit 9b887c3c3a
3 changed files with 23 additions and 1 deletions

View File

@@ -427,7 +427,7 @@ class Tag < ApplicationRecord
}
scan_query(query).each do |token|
q[:tag_count] += 1 unless token == "status:deleted" || token =~ /\Alimit:.+\Z/
q[:tag_count] += 1 unless Danbooru.config.is_unlimited_tag?(token)
if token =~ /\A(#{METATAGS}):(.+)\Z/i
g1 = $1.downcase