Browse Source

Serialize content-type on Delete & Redraft

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
b3e68de4d2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/serializers/rest/status_serializer.rb

+ 1
- 0
app/serializers/rest/status_serializer.rb View File

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

Loading…
Cancel
Save