From 5c358ceaf1e36689a596c56979001e763cd7af24 Mon Sep 17 00:00:00 2001 From: Essem Date: Wed, 7 Jan 2026 14:39:27 -0600 Subject: [PATCH] Merge pull request #3340 from TheEssem/fix/quote-cw-fallback-md Fix quotes with only CWs not having fallback link when posting with other content types --- app/lib/advanced_text_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/advanced_text_formatter.rb b/app/lib/advanced_text_formatter.rb index db46444668..07c09c3671 100644 --- a/app/lib/advanced_text_formatter.rb +++ b/app/lib/advanced_text_formatter.rb @@ -38,7 +38,7 @@ class AdvancedTextFormatter < TextFormatter # Differs from TextFormatter by not messing with newline after parsing 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| if entity[:url]