emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 27e438a2a4 17/50: fix author action byline non-gr


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 27e438a2a4 17/50: fix author action byline non-grouped notifs: use display-name if poss
Date: Sat, 2 Nov 2024 13:00:53 -0400 (EDT)

branch: elpa/mastodon
commit 27e438a2a4bbd2ee35cb70c382980216e6710866
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>

    fix author action byline non-grouped notifs: use display-name if poss
---
 lisp/mastodon-notifications.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index 9ff84134ff..c27ffef9aa 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -228,7 +228,8 @@ JSON is a list of alists."
                 str))))
          (status (mastodon-tl--field 'status note))
          (follower (alist-get 'account note))
-         (follower-name (alist-get 'username follower))
+         (follower-name (or (alist-get 'display_name follower)
+                            (alist-get 'username follower)))
          (filtered (mastodon-tl--field 'filtered status))
          (filters (when filtered
                     (mastodon-tl--current-filters filtered))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]