Add field to serialized local-only statuses
This commit is contained in:
parent
c2c8cc7fc3
commit
ca7f2284cd
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue