diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-13 17:22:47 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-11-13 18:55:57 +0100 |
commit | f84897c7d7499dfa244ea254a3731d662b770748 (patch) | |
tree | 4fe3b4efb7d251dc8d46404696e34a3c47945173 /app/serializers/rest | |
parent | 759750801e42d4374887aea2872052a12bf8281d (diff) |
Add field to serialized local-only statuses
Diffstat (limited to 'app/serializers/rest')
-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 8a61c1056..dd8482eea 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -11,6 +11,7 @@ class REST::StatusSerializer < ActiveModel::Serializer attribute :muted, if: :current_user? attribute :bookmarked, if: :current_user? attribute :pinned, if: :pinnable? + attribute :local_only if :local? belongs_to :reblog, serializer: REST::StatusSerializer belongs_to :application |