]> cat aescling's git repositories - mastodon.git/commitdiff
Add field to serialized local-only statuses
authorThibaut Girka <thib@sitedethib.com>
Tue, 13 Nov 2018 16:22:47 +0000 (17:22 +0100)
committerThibG <thib@sitedethib.com>
Tue, 13 Nov 2018 17:55:57 +0000 (18:55 +0100)
app/serializers/rest/status_serializer.rb

index 8a61c105678a56d34695acde0806aa196b8f362c..dd8482eea28bb5f99fcfddfbf488bc6c1314d574 100644 (file)
@@ -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
This page took 0.0252 seconds and 3 git commands to generate.