This commit is contained in:
Toks
2013-12-10 14:25:27 -05:00
parent 347561c838
commit d9bb174f6f
2 changed files with 16 additions and 0 deletions

View File

@@ -394,6 +394,9 @@ class Tag < ActiveRecord::Base
q[:pool] = "none"
elsif $2.downcase == "any"
q[:pool] = "any"
elsif $2.include?("*")
pools = Pool.name_matches($2).all(:select => "id", :limit => Danbooru.config.tag_query_limit, :order => "post_count DESC")
q[:tags][:include] += pools.map!{|pool| "pool:#{pool.id}"}
else
q[:tags][:related] << "pool:#{Pool.name_to_id($2)}"
end