fixes #813
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -51,6 +51,7 @@ class UsersController < ApplicationController
|
||||
check_privilege(@user)
|
||||
sanitize_params!
|
||||
@user.update_attributes(params[:user], :as => CurrentUser.role)
|
||||
cookies.delete(:favorite_tags)
|
||||
respond_with(@user)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user