diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-23 10:46:48 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-23 10:46:48 +0100 |
commit | 0603971894a967f632020277c32a8e50ea165519 (patch) | |
tree | 7951334ed42713a8b318a50d92212a6f9a5e5fd6 /app/controllers/api | |
parent | 4bdb6a0eaffb39fb953689729c9fcf772c7128d6 (diff) |
Adding sensitive marker to statuses in API
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index b2b432a6b..2e0399301 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -50,7 +50,7 @@ class Api::V1::StatusesController < ApiController end def create - @status = PostStatusService.new.call(current_user.account, params[:status], params[:in_reply_to_id].blank? ? nil : Status.find(params[:in_reply_to_id]), params[:media_ids]) + @status = PostStatusService.new.call(current_user.account, params[:status], params[:in_reply_to_id].blank? ? nil : Status.find(params[:in_reply_to_id]), media_ids: params[:media_ids], sensitive: params[:sensitive]) render action: :show end |