Merge pull request #3389 from evazion/fix-3387

Fix #3387: Safebooru: Two tag searches fail for members.
This commit is contained in:
Albert Yi
2017-11-20 11:39:50 -08:00
committed by GitHub
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