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

@@ -93,7 +93,7 @@ private
if @post
tags = Tag.scan_tags(@post.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)).to_a.flatten.join(" ")
end
end
end