diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 01:21:46 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 01:21:46 -0600 |
commit | 8ce32d01ab4e8c2511d3129d628fa614f158539e (patch) | |
tree | 4f03df6563efd24c16a4b8d4270f5b0e27816f88 /app | |
parent | 58133d648b7758c326dfbdce32bb5918d5da0579 (diff) |
expose `hidden` attribute to client apps
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 1d58264d5..386b58fa1 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -18,6 +18,7 @@ class REST::StatusSerializer < ActiveModel::Serializer attribute :sharekey, if: :has_sharekey? attribute :delete_after, if: :owner? attribute :defederate_after, if: :owner? + attribute :hidden, if: :owner? attribute :content, unless: :source_requested? attribute :text, if: :source_requested? |