This commit is contained in:
r888888888
2013-06-10 16:33:26 -07:00
parent 2f2c892670
commit af25507480
7 changed files with 19 additions and 26 deletions

View File

@@ -54,7 +54,7 @@ protected
if @upload
tags = Tag.scan_tags(@upload.tag_string)
tags = TagAlias.to_aliased(tags) + Tag.scan_tags(cookies[:recent_tags])
cookies[:recent_tags] = tags.uniq.slice(0, 40).join(" ")
cookies[:recent_tags] = Tag.categories_for(tags.uniq.slice(0, 30).join(" ")).to_a.flatten.join(" ")
end
end
end