Fix quotes with CWs but no text not having fallback link (#37361)

This commit is contained in:
Claire 2026-01-05 11:35:35 +01:00
parent 1c5461fffe
commit ad4ba5aa00
3 changed files with 22 additions and 3 deletions

View file

@ -15,8 +15,6 @@ class HtmlAwareFormatter
end
def to_s
return ''.html_safe if text.blank?
if local?
linkify
else
@ -29,6 +27,8 @@ class HtmlAwareFormatter
private
def reformat
return ''.html_safe if text.blank?
Sanitize.fragment(text, Sanitize::Config::MASTODON_STRICT)
end