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
This commit is contained in:
Essem
2026-01-07 14:39:27 -06:00
committed by GitHub
parent 29950a120d
commit 5c358ceaf1

View File

@@ -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]