Browse Source

Merge pull request 'use display_name for mention' (#4) from use-display-name-for-mention into closed-social-v3

Reviewed-on: https://git.closed.social/closed-social/mastodon/pulls/4
closed-social-v3
欧醚 2 years ago
parent
commit
2b34c72fc4
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