about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorVyr Cossont <VyrCossont@users.noreply.github.com>2023-01-20 04:57:32 -0800
committerGitHub <noreply@github.com>2023-01-20 13:57:32 +0100
commitc4a5e0ca0e89b2f8abd69ed9b8a4da3f82d0ccaf (patch)
tree0992d5407e7bf5210003846dcf086c13f47373c9 /app/serializers
parent26c2b401a5ac895742533d0b5cab5f6a15256a99 (diff)
Advertise supported MIME types for statuses (#2090)
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/instance_serializer.rb1
-rw-r--r--app/serializers/rest/v1/instance_serializer.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb
index 5ae1099d0..24a1c1ae6 100644
--- a/app/serializers/rest/instance_serializer.rb
+++ b/app/serializers/rest/instance_serializer.rb
@@ -55,6 +55,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
         max_characters: StatusLengthValidator::MAX_CHARS,
         max_media_attachments: 4,
         characters_reserved_per_url: StatusLengthValidator::URL_PLACEHOLDER_CHARS,
+        supported_mime_types: HtmlAwareFormatter::STATUS_MIME_TYPES,
       },
 
       media_attachments: {
diff --git a/app/serializers/rest/v1/instance_serializer.rb b/app/serializers/rest/v1/instance_serializer.rb
index 389ec7dff..0c2101404 100644
--- a/app/serializers/rest/v1/instance_serializer.rb
+++ b/app/serializers/rest/v1/instance_serializer.rb
@@ -79,6 +79,7 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
         max_characters: StatusLengthValidator::MAX_CHARS,
         max_media_attachments: 4,
         characters_reserved_per_url: StatusLengthValidator::URL_PLACEHOLDER_CHARS,
+        supported_mime_types: HtmlAwareFormatter::STATUS_MIME_TYPES,
       },
 
       media_attachments: {