diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-10-16 18:33:59 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-10-16 18:33:59 +0200 |
commit | 0ed127907f34dd8dbc1aad9d131e0fda1ce4d35d (patch) | |
tree | 3dbf3e4b714e09ccdf6b65e2faddbefab9a800c9 /lisp/mastodon-notifications.el | |
parent | d74004b02d412bd3fff6ec37393c4e21873296a7 (diff) |
bylines/notifs: use new uname/handle combo in reaction notifs
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r-- | lisp/mastodon-notifications.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index bbc77a8..8517a84 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -390,15 +390,12 @@ When COMPACT, just display username, not also handle." mastodon-tl--display-media-p (mastodon-tl--image-trans-check)) (mastodon-media--get-avatar-rendering .avatar)) - (let ((uname (mastodon-tl--byline-username toot account)) - (handle (concat - " (" - (mastodon-tl--byline-handle toot nil account) - ")"))) - (if compact - ;; FIXME: this doesn't work to make a link from a username: - (propertize handle 'display uname) - (concat uname handle))) + (let ((uname + (if (not (string-empty-p (alist-get 'display_name account))) + (alist-get 'display_name account) + (alist-get 'username account)))) + (mastodon-tl--byline-handle toot nil account + uname 'mastodon-display-name-face)) "\n")))) (if (< accts total) (let ((diff (- total accts))) |