fixes #2023
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user