mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix quotes with CWs but no text not having fallback link (#37361)
This commit is contained in:
parent
1c5461fffe
commit
ad4ba5aa00
3 changed files with 22 additions and 3 deletions
|
|
@ -15,8 +15,6 @@ class HtmlAwareFormatter
|
|||
end
|
||||
|
||||
def to_s
|
||||
return ''.html_safe if text.blank?
|
||||
|
||||
if local?
|
||||
linkify
|
||||
else
|
||||
|
|
@ -29,6 +27,8 @@ class HtmlAwareFormatter
|
|||
private
|
||||
|
||||
def reformat
|
||||
return ''.html_safe if text.blank?
|
||||
|
||||
Sanitize.fragment(text, Sanitize::Config::MASTODON_STRICT)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue