mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 15:31:52 +00:00
Fix uncaught TypeError in POST /api/v1/featured_tags
(#25072)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
45d98959ac
commit
785e650ab4
|
@ -13,7 +13,7 @@ class Api::V1::FeaturedTagsController < Api::BaseController
|
|||
end
|
||||
|
||||
def create
|
||||
featured_tag = CreateFeaturedTagService.new.call(current_account, featured_tag_params[:name])
|
||||
featured_tag = CreateFeaturedTagService.new.call(current_account, params.require(:name))
|
||||
render json: featured_tag, serializer: REST::FeaturedTagSerializer
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user