]> cat aescling's git repositories - mastodon.git/commitdiff
Add content-type to status source in glitch-soc
authorClaire <claire.github-309c@sitedethib.com>
Wed, 19 Jan 2022 23:02:17 +0000 (00:02 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Wed, 19 Jan 2022 23:03:44 +0000 (00:03 +0100)
app/serializers/rest/status_source_serializer.rb

index cd3c740847931c6c933cb5fb1f4b365c5a334f82..c03cbd20d3c65af8146df911055653ced8c907a6 100644 (file)
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 class REST::StatusSourceSerializer < ActiveModel::Serializer
-  attributes :id, :text, :spoiler_text
+  attributes :id, :text, :spoiler_text, :content_type
 
   def id
     object.id.to_s