about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-05-21 20:48:57 -0700
committerReverite <github@reverite.sh>2019-05-21 20:48:57 -0700
commitd873e4f3d5878a2b2800758cbe3b9c870c228d51 (patch)
tree23a3a373699381d4bd4f629136b9c82de5df96a3 /app/controllers/api
parent4cea89bf2e9ce7f73fccfc637191b1e039ad25ee (diff)
parent2332b3f146b0d879daba8a99bd35c8bf425edea3 (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/statuses_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb
index b0e134554..26a0ab457 100644
--- a/app/controllers/api/v1/statuses_controller.rb
+++ b/app/controllers/api/v1/statuses_controller.rb
@@ -54,6 +54,7 @@ class Api::V1::StatusesController < Api::BaseController
                                          scheduled_at: status_params[:scheduled_at],
                                          application: doorkeeper_token.application,
                                          poll: status_params[:poll],
+                                         content_type: status_params[:content_type],
                                          idempotency: request.headers['Idempotency-Key'])
 
     render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
@@ -85,6 +86,7 @@ class Api::V1::StatusesController < Api::BaseController
       :spoiler_text,
       :visibility,
       :scheduled_at,
+      :content_type,
       media_ids: [],
       poll: [
         :multiple,