From faf1aadad2d6705ed8e058b54c9132930ae17b5f Mon Sep 17 00:00:00 2001 From: kyori19 Date: Sun, 27 Feb 2022 04:50:03 +0000 Subject: [PATCH] Fix NoMethodError --- app/lib/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 46ac46872..8a05ff516 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -38,7 +38,7 @@ class Formatter html = encode_and_link_urls(html, linkable_accounts) html = encode_custom_emojis(html, status.emojis, options[:autoplay]) if options[:custom_emojify] 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_safe # rubocop:disable Rails/OutputSafety