Use normalizes for tag name attribute (#37119)
This commit is contained in:
1 parent
e92b7beb75
commit
9762b4a75c
5 files changed
+41
-30
No files matched your search
@@ -39,6 +39,6 @@ class Api::V1::TagsController < Api::BaseController
|
||||
def set_or_create_tag
|
||||
return not_found unless Tag::HASHTAG_NAME_RE.match?(params[:id])
|
||||
|
||||
@tag = Tag.find_normalized(params[:id]) || Tag.new(name: Tag.normalize(params[:id]), display_name: params[:id])
|
||||
@tag = Tag.find_normalized(params[:id]) || Tag.new(name: params[:id], display_name: params[:id])
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user