Serialize content-type on Delete & Redraft

pull/1053/head
Thibaut Girka 2019-05-12 20:34:22 +02:00 committed by ThibG
parent d7520f8175
commit b3e68de4d2
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
attribute :content, unless: :source_requested?
attribute :text, if: :source_requested?
attribute :content_type, if: :source_requested?
belongs_to :reblog, serializer: REST::StatusSerializer
belongs_to :application, if: :show_application?