mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user