Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-03-04 01:07:49 +01:00
24 changed files with 66 additions and 57 deletions

View File

@@ -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