This commit is contained in:
albert
2013-03-08 15:31:11 -05:00
parent 35a51c0351
commit c3ac9832f9
2 changed files with 18 additions and 4 deletions

View File

@@ -66,10 +66,10 @@ private
end
def save_recent_tags
if tag_query
tags = Tag.scan_tags(tag_query)
tags = TagAlias.to_aliased(tags) + Tag.scan_tags(session[:recent_tags])
session[:recent_tags] = tags.uniq.slice(0, 40).join(" ")
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(" ")
end
end
end