Fix NoMethodError

This commit is contained in:
kyori19 2022-02-27 04:50:03 +00:00
parent c15001381b
commit faf1aadad2
No known key found for this signature in database
GPG Key ID: CB37D0651E7F52AA

View File

@ -38,7 +38,7 @@ class Formatter
html = encode_and_link_urls(html, linkable_accounts) html = encode_and_link_urls(html, linkable_accounts)
html = encode_custom_emojis(html, status.emojis, options[:autoplay]) if options[:custom_emojify] html = encode_custom_emojis(html, status.emojis, options[:autoplay]) if options[:custom_emojify]
html = simple_format(html, {}, sanitize: false) html = simple_format(html, {}, sanitize: false)
html = quotify(html, status) if status.quote? && !options[:escape_quotify] html = quotify(html, status) if status.respond_to?(:quote?) && status.quote? && !options[:escape_quotify]
html = html.delete("\n") html = html.delete("\n")
html.html_safe # rubocop:disable Rails/OutputSafety html.html_safe # rubocop:disable Rails/OutputSafety