about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-19 22:41:10 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-19 22:41:10 +0200
commitb481e4fac1c564b8008f6f1d0eea1727ec9faa08 (patch)
tree6917de2e59e69f5ad0dc9b1471a7c7c8659c1af8 /app/helpers
parent625c4f36ef394215e65e19157bfaf60e7de94b5f (diff)
parent6aa5ea1b5dff54941682cb006ac2b11ab7b77988 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts:
	config/locales/simple_form.ja.yml
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/stream_entries_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/stream_entries_helper.rb b/app/helpers/stream_entries_helper.rb
index 707c8e26c..a91a28935 100644
--- a/app/helpers/stream_entries_helper.rb
+++ b/app/helpers/stream_entries_helper.rb
@@ -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)