Fix missing fallback link in CW-only quote posts (#36963)

This commit is contained in:
Claire 2025-11-20 11:08:36 +01:00 committed by GitHub
parent f01e80bed3
commit a28f1d0110
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ class TextFormatter
end end
def to_s def to_s
return ''.html_safe if text.blank? return add_quote_fallback('').html_safe if text.blank? # rubocop:disable Rails/OutputSafety
html = rewrite do |entity| html = rewrite do |entity|
if entity[:url] if entity[:url]