aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index cb36616..0177ba7 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -376,10 +376,7 @@ When DOMAIN, force inclusion of user's domain in their handle."
mastodon-tl--display-media-p
(mastodon-tl--image-trans-check))
(mastodon-media--get-avatar-rendering .avatar))
- (let ((uname
- (if (not (string-empty-p (alist-get 'display_name account)))
- (alist-get 'display_name account)
- (alist-get 'username account))))
+ (let ((uname (mastodon-tl--display-or-uname account)))
(mastodon-tl--byline-handle toot nil account
uname 'mastodon-display-name-face))
", ")))