mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Fix returning empty <p>
tag for blank account note
in REST API (#17687)
This commit is contained in:
parent
54d4ece743
commit
085f286750
@ -57,6 +57,8 @@ class Formatter
|
||||
end
|
||||
|
||||
def simplified_format(account, **options)
|
||||
return '' if account.note.blank?
|
||||
|
||||
html = account.local? ? linkify(account.note) : reformat(account.note)
|
||||
html = encode_custom_emojis(html, account.emojis, options[:autoplay]) if options[:custom_emojify]
|
||||
html.html_safe # rubocop:disable Rails/OutputSafety
|
||||
|
Loading…
Reference in New Issue
Block a user