]> cat aescling's git repositories - mastodon.git/commitdiff
Serialize content-type on Delete & Redraft
authorThibaut Girka <thib@sitedethib.com>
Sun, 12 May 2019 18:34:22 +0000 (20:34 +0200)
committerThibG <thib@sitedethib.com>
Fri, 17 May 2019 21:51:14 +0000 (23:51 +0200)
app/serializers/rest/status_serializer.rb

index 906f489dbf49d0dea189d5acce84994dab77d9b3..b07937014a35b42a378c9e687a9dbb8cb85bef22 100644 (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?