~cytrogen/masto-fe

785e650ab44e9ffd28f4284f68ae82007f5609bb — Daniel M Brasil 2 years ago 45d9895
Fix uncaught TypeError in POST `/api/v1/featured_tags` (#25072)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M app/controllers/api/v1/featured_tags_controller.rb
M app/controllers/api/v1/featured_tags_controller.rb => app/controllers/api/v1/featured_tags_controller.rb +1 -1
@@ 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