From abd113167b4f50d2ca6b938fcb52997ab6080b0b Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 10 Feb 2022 09:13:27 +0100 Subject: Add ability to change content-type when editing a toot Content-type defaults to edited toot's content-type to avoid surprising behaviors when using clients that do not support this feature. --- app/controllers/api/v1/statuses_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/api/v1') diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index c928a24de..eaac8e563 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -66,7 +66,8 @@ class Api::V1::StatusesController < Api::BaseController media_ids: status_params[:media_ids], sensitive: status_params[:sensitive], spoiler_text: status_params[:spoiler_text], - poll: status_params[:poll] + poll: status_params[:poll], + content_type: status_params[:content_type] ) render json: @status, serializer: REST::StatusSerializer -- cgit