From 617bc216b8080bd1bf76ed19d99fa53c08217197 Mon Sep 17 00:00:00 2001 From: unarist Date: Sat, 7 Oct 2017 03:38:29 +0900 Subject: [PATCH] Fix remote profile being displayed in HTML on remote_follow (#5249) --- 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 d7f6ec47b5..57f105da74 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -50,7 +50,7 @@ class Formatter end def simplified_format(account) - return reformat(account.note) unless account.local? + return reformat(account.note).html_safe unless account.local? # rubocop:disable Rails/OutputSafety html = encode_and_link_urls(account.note) html = simple_format(html, {}, sanitize: false)