about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-14 02:41:44 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commitabfd0c107c8003ba06a118625c49d22df553696f (patch)
treebb41e6b47b2848233b7830b179a7b2e4df21dd91 /app/serializers
parentd97a574b07cb60e9c2bdd98ace5049e73ee9b861 (diff)
[Command Tags] Add #!notify toggle to allow toggling whether or not a post should be locally delivered to timelines/notifications
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/status_serializer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index 96ae59c62..8578775c4 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -23,6 +23,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
   attribute :published if :local?
   attribute :hidden, if: :current_user?
   attribute :conversation_hidden, if: :current_user?
+  attribute :notify, if: :locally_owned?
 
   belongs_to :reblog, serializer: REST::StatusSerializer
   belongs_to :application, if: :show_application?