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

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

[nongnu] elpa/mastodon 5c54f95aa8 06/18: foll req: use display name if p


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 5c54f95aa8 06/18: foll req: use display name if poss for action str
Date: Thu, 21 Nov 2024 13:00:18 -0500 (EST)

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

    foll req: use display name if poss for action str
---
 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 238feacc1b..2d948a8927 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -266,7 +266,8 @@ ACCOUNTS is data of the accounts that have reacted to the 
notification."
                     str))))
              (follower (when (member type '(follow follow_request))
                          (car accounts)))
-             (follower-name (mastodon-tl--field '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]