mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-20 05:44:01 +00:00
Add field to serialized local-only statuses
This commit is contained in:
parent
759750801e
commit
f84897c7d7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue