diff options
author | marty hiatt <martianhiatus@disroot.org> | 2024-10-30 21:47:06 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus@disroot.org> | 2024-10-30 21:47:06 +0100 |
commit | 27e438a2a4bbd2ee35cb70c382980216e6710866 (patch) | |
tree | 01f4c4620d79fb61f448915f8b5332bd66de392d /lisp | |
parent | 5cb2bf1c0409acb2a88f5ad45135fadb6d84db7a (diff) |
fix author action byline non-grouped notifs: use display-name if poss
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-notifications.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index 9ff8413..c27ffef 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)))) |