Browse Source

fix bugs

pull/5/head
欧醚 4 years ago
parent
commit
c148e7a041
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 end
def format_display_name(account, **options) 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(account.display_name.presence || account.username)
html = encode_custom_emojis(html, account.emojis, options[:autoplay]) if options[:custom_emojify] html = encode_custom_emojis(html, account.emojis, options[:autoplay]) if options[:custom_emojify]
html.html_safe # rubocop:disable Rails/OutputSafety html.html_safe # rubocop:disable Rails/OutputSafety

Loading…
Cancel
Save