From 34979a5e64c8d07d028e7a8a59d4f3f156fb869c Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 17 Oct 2024 20:09:52 +0200 Subject: notifs: make action authors work for all notif types --- lisp/mastodon-notifications.el | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'lisp') diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index debc760..59b90fd 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -293,19 +293,15 @@ ACCOUNTS is data of the accounts that have reacted to the notification." (mastodon-notifications--byline-concat (alist-get type-sym mastodon-notifications--action-alist)))) ;; action authors - (cond - ((member type-sym '(follow_request mention)) - "") ;; mentions are normal statuses - ((member type-sym '(favourite reblog update)) - (mastodon-notifications--byline-accounts - accounts status group)) - ((eq type-sym 'follow_request) - (mastodon-tl--byline-uname-+-handle status nil (car accounts)))) + (cond ((member type-sym '(follow_request mention)) + "") ;; mentions are normal statuses + (t (mastodon-notifications--byline-accounts + accounts status group))) ;; action symbol: (when (member type-sym '(favourite reblog update)) (mastodon-tl--symbol type-sym)) .status_id - ;; base toot + ;; base toot (no need for update/poll/?) (when (member type-sym '(favourite reblog)) status) folded group accounts)))))) -- cgit v1.2.3