diff options
author | Vyr Cossont <VyrCossont@users.noreply.github.com> | 2023-01-20 04:57:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 13:57:32 +0100 |
commit | c4a5e0ca0e89b2f8abd69ed9b8a4da3f82d0ccaf (patch) | |
tree | 0992d5407e7bf5210003846dcf086c13f47373c9 /app/lib | |
parent | 26c2b401a5ac895742533d0b5cab5f6a15256a99 (diff) |
Advertise supported MIME types for statuses (#2090)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/html_aware_formatter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/html_aware_formatter.rb b/app/lib/html_aware_formatter.rb index 7a1cd0340..8766c5ee0 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 |