Browse Source

use display_name for mention

closed-social-v3
欧醚 3 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
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

Loading…
Cancel
Save