about summary refs log tree commit diff
path: root/app/controllers/api/v1/statuses_controller.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-21 20:21:52 +0200
committerFire Demon <firedemon@creature.cafe>2020-09-08 03:37:07 -0500
commitaff777343055b5b15fb757fda22912dc0fcd2c87 (patch)
tree5f2b5b17fce0291675d00a87c76b4d22572223d0 /app/controllers/api/v1/statuses_controller.rb
parent9d4f18b984d6699bdf96e5f5963edfe80063426c (diff)
[Privacy, Port: glitch-soc@71b1d4c] Backend changes to allow handling local-only toots not based on emoji
Co-authored-by: Fire Demon <firedemon@creature.cafe>
Diffstat (limited to 'app/controllers/api/v1/statuses_controller.rb')
-rw-r--r--app/controllers/api/v1/statuses_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb
index cbd232a50..ca40fac0a 100644
--- a/app/controllers/api/v1/statuses_controller.rb
+++ b/app/controllers/api/v1/statuses_controller.rb
@@ -46,6 +46,7 @@ class Api::V1::StatusesController < Api::BaseController
                                          notify: status_params[:notify],
                                          publish: status_params[:publish],
                                          visibility: status_params[:visibility],
+                                         local_only: status_params[:local_only],
                                          scheduled_at: status_params[:scheduled_at],
                                          application: doorkeeper_token.application,
                                          poll: status_params[:poll],
@@ -77,6 +78,7 @@ class Api::V1::StatusesController < Api::BaseController
                                          notify: status_params[:notify],
                                          publish: status_params[:publish],
                                          visibility: status_params[:visibility],
+                                         local_only: status_params[:local_only],
                                          scheduled_at: status_params[:scheduled_at],
                                          application: doorkeeper_token.application,
                                          poll: status_params[:poll],
@@ -145,6 +147,7 @@ class Api::V1::StatusesController < Api::BaseController
       :notify,
       :publish,
       :visibility,
+      :local_only,
       :scheduled_at,
       :content_type,
       :expires_at,