aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-20 10:48:21 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-20 10:48:21 +0200
commitc6149ab2174a05bb7d42d23aa5eba669c6fc8cee (patch)
tree3283a90d37a173e0f063b6cc7685bb5b0f2de65f /lisp/mastodon-notifications.el
parentc7305179fcca04ebdf090c93dabd2c82bad5b6ff (diff)
parentbfb2b4b2276622830b7a5ed1066c64ef6d5693e8 (diff)
Merge branch 'map-nested-elt' into develop
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 a7f358b..8d2c928 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -375,10 +375,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))
", ")))