diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-05-12 20:34:22 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-05-17 23:51:14 +0200 |
commit | b3e68de4d2093112db976d6f3a83817142264ee0 (patch) | |
tree | da69441e99f9d075c44c12a65e85f8ee0e792407 /app | |
parent | d7520f81759e9db58a5b5ca61b9114e9ef44d92f (diff) |
Serialize content-type on Delete & Redraft
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 906f489db..b07937014 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -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? |