Browse Source

use display_name for mention

pull/4/head
欧醚 4 years ago
parent
commit
ff0da1940b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/formatter.rb

+ 1
- 1
app/lib/formatter.rb View File

@ -334,6 +334,6 @@ class Formatter
end end
def mention_html(account) def mention_html(account)
"<span class=\"h-card\"><a href=\"#{encode(ActivityPub::TagManager.instance.url_for(account))}\" class=\"u-url mention\">@<span>#{encode(account.username)}</span></a></span>"
"<span class=\"h-card\"><a href=\"#{encode(ActivityPub::TagManager.instance.url_for(account))}\" class=\"u-url mention\">@<span>#{format_display_name(account, custom_emojify: true)}</span></a></span>"
end end
end end

Loading…
Cancel
Save