diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-04 01:07:49 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-03-04 01:07:49 +0100 |
commit | d9c3109bb67f64c671573b1bab02132c6214509b (patch) | |
tree | 3d39c780306ee52a48b3c3d1ae30ecf600ba962d /app/lib/formatter.rb | |
parent | 3637a0101e1f5095397f190e88f281d603797c32 (diff) | |
parent | 2ea754b8610b50cc93aeb1921ecdf7415efaf17e (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r-- | app/lib/formatter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 94d149da3..dfa493ed5 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -90,6 +90,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 |