From c4a5e0ca0e89b2f8abd69ed9b8a4da3f82d0ccaf Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Fri, 20 Jan 2023 04:57:32 -0800 Subject: Advertise supported MIME types for statuses (#2090) --- app/lib/html_aware_formatter.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/lib/html_aware_formatter.rb') 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 -- cgit