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.
This commit is contained in:
parent
f1a6f9062e
commit
abd113167b
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue