Add field to serialized local-only statuses

master
Thibaut Girka 6 years ago committed by ThibG
parent 759750801e
commit f84897c7d7
  1. 1
      app/serializers/rest/status_serializer.rb

@ -11,6 +11,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
attribute :muted, if: :current_user? attribute :muted, if: :current_user?
attribute :bookmarked, if: :current_user? attribute :bookmarked, if: :current_user?
attribute :pinned, if: :pinnable? attribute :pinned, if: :pinnable?
attribute :local_only if :local?
belongs_to :reblog, serializer: REST::StatusSerializer belongs_to :reblog, serializer: REST::StatusSerializer
belongs_to :application belongs_to :application

Loading…
Cancel
Save