diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-10-20 10:11:40 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-10-20 10:11:40 +0200 |
commit | bfb2b4b2276622830b7a5ed1066c64ef6d5693e8 (patch) | |
tree | 50d07d470b247a39ac9618e4af92f57e8a5b7b75 /lisp/mastodon-notifications.el | |
parent | 9aeb84f4fd781f931e2e78573cbd85edd2a22db7 (diff) |
refactor display-or-uname
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r-- | lisp/mastodon-notifications.el | 5 |
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)) ", "))) |