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:
parent
29950a120d
commit
5c358ceaf1
@ -38,7 +38,7 @@ class AdvancedTextFormatter < TextFormatter
|
|||||||
|
|
||||||
# Differs from TextFormatter by not messing with newline after parsing
|
# Differs from TextFormatter by not messing with newline after parsing
|
||||||
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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user