diff --git a/app/lib/html_aware_formatter.rb b/app/lib/html_aware_formatter.rb
index 7a1cd03409..8766c5ee0c 100644
--- a/app/lib/html_aware_formatter.rb
+++ b/app/lib/html_aware_formatter.rb
@@ -1,6 +1,8 @@
# frozen_string_literal: true
class HtmlAwareFormatter
+ STATUS_MIME_TYPES = %w(text/plain text/markdown text/html).freeze
+
attr_reader :text, :local, :options
alias local? local
diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb
index 5ae1099d04..24a1c1ae6c 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 389ec7dffc..0c21014046 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: {