Fix NoMethodError
This commit is contained in:
parent
c15001381b
commit
faf1aadad2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user