Browse Source

Fix double-encoding of display name in title and e-mails (#7534)

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
9422b3e0d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/helpers/stream_entries_helper.rb

+ 5
- 1
app/helpers/stream_entries_helper.rb View File

@ -5,7 +5,11 @@ module StreamEntriesHelper
EMBEDDED_ACTION = 'embed'
def display_name(account, **options)
Formatter.instance.format_display_name(account, options)
if options[:custom_emojify]
Formatter.instance.format_display_name(account, options)
else
account.display_name.presence || account.username
end
end
def account_description(account)

Loading…
Cancel
Save