From b1249a6ef1c7ce479a646491805712b9573b8ce8 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 21 May 2018 20:21:52 +0200 Subject: [Privacy, Port: glitch-soc@71b1d4c] Backend changes to allow handling local-only toots not based on emoji Co-authored-by: Fire Demon --- app/controllers/api/v1/statuses_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (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 1437496be..b64bf3fa0 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -42,6 +42,7 @@ class Api::V1::StatusesController < Api::BaseController sensitive: status_params[:sensitive], spoiler_text: status_params[:spoiler_text], visibility: status_params[:visibility], + local_only: status_params[:local_only], scheduled_at: status_params[:scheduled_at], application: doorkeeper_token.application, poll: status_params[:poll], @@ -67,6 +68,7 @@ class Api::V1::StatusesController < Api::BaseController sensitive: status_params[:sensitive], spoiler_text: status_params[:spoiler_text], visibility: status_params[:visibility], + local_only: status_params[:local_only], scheduled_at: status_params[:scheduled_at], application: doorkeeper_token.application, poll: status_params[:poll], @@ -115,6 +117,7 @@ class Api::V1::StatusesController < Api::BaseController :sensitive, :spoiler_text, :visibility, + :local_only, :scheduled_at, :content_type, tags: [], -- cgit