Browse Source

Merge pull request 'fix bugs' (#5) from use-display-name-for-mention into closed-social-v3

Reviewed-on: https://git.closed.social/closed-social/mastodon/pulls/5
closed-social-v3
欧醚 2 years ago
parent
commit
a583987d76
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/lib/formatter.rb

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

@ -80,6 +80,7 @@ class Formatter
end
def format_display_name(account, **options)
return encode(account.username) unless account.has_attribute?('display_name')
html = encode(account.display_name.presence || account.username)
html = encode_custom_emojis(html, account.emojis, options[:autoplay]) if options[:custom_emojify]
html.html_safe # rubocop:disable Rails/OutputSafety

Loading…
Cancel
Save