This commit is contained in:
albert
2012-01-14 17:19:42 -05:00
parent 57e93f8e69
commit 914d2d5b4e
4 changed files with 13 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ class Tag < ActiveRecord::Base
output[:include] << tag[1..-1]
elsif tag =~ /\*/
matches = Tag.name_matches(tag).all(:select => "name", :limit => 25, :order => "post_count DESC").map(&:name)
matches = Tag.name_matches(tag).all(:select => "name", :limit => Danbooru.config.tag_query_limit, :order => "post_count DESC").map(&:name)
matches = ["~no_matches~"] if matches.empty?
output[:include] += matches