From 348f48c8d9c04c9f80406a17b0f69cc78f0d33a3 Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Mon, 16 May 2022 13:17:57 +0900 Subject: [PATCH] test --- app/lib/text_formatter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index 1ebb24c70..c822ca153 100644 --- a/app/lib/text_formatter.rb +++ b/app/lib/text_formatter.rb @@ -31,7 +31,7 @@ class TextFormatter end def to_s - return ''.html_safe if text.blank? & !quote? + return ''.html_safe if text.blank? & !status.quote? html = rewrite do |entity| if entity[:url] @@ -43,7 +43,7 @@ class TextFormatter end end - html += quotify if quote? + html += quotify if status.quote? html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?