From ff0da1940b47b87e189e67ec16807d99dee34a6e Mon Sep 17 00:00:00 2001 From: Z Date: Wed, 30 Sep 2020 10:58:24 +0800 Subject: [PATCH] use display_name for mention --- 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 02efab801..8e9d9da10 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -334,6 +334,6 @@ class Formatter end def mention_html(account) - "@#{encode(account.username)}" + "@#{format_display_name(account, custom_emojify: true)}" end end