Skip to content

Commit

Permalink
Fix uncaught TypeError in POST /api/v1/featured_tags (mastodon#25072)
Browse files Browse the repository at this point in the history
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
2 people authored and skerit committed Jul 7, 2023
1 parent d9cc6ad commit db08e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/featured_tags_controller.rb
Expand Up @@ -13,7 +13,7 @@ def index
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

Expand Down

0 comments on commit db08e45

Please sign in to comment.