aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-11 10:05:28 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-11 10:05:28 +0200
commitc714d1524d2f369228252d265f0a23fe1c166b14 (patch)
tree5e2175fe070f37c94cbedec20ee7e2a79b336f7d /lisp/mastodon-tl.el
parent64fa8d9066b3a58895e595fc3ca44249edada5df (diff)
fix foll_reqs, add group/accounts props to notifs
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index f611c89..1b3b9ec 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1522,7 +1522,7 @@ Runs `mastodon-tl--render-text' and fetches poll or media."
(defun mastodon-tl--insert-status
(toot body author-byline action-byline &optional id base-toot
- detailed-p thread domain unfolded no-byline group)
+ detailed-p thread domain unfolded no-byline group accounts)
"Display the content and byline of timeline element TOOT.
BODY will form the section of the toot above the byline.
AUTHOR-BYLINE is an optional function for adding the author
@@ -1549,7 +1549,7 @@ NO-BYLINE means just insert toot body, used for folding."
(after-reply-status-p
(when (and thread reply-to-id)
(mastodon-tl--after-reply-status reply-to-id)))
- (type (alist-get 'type toot))
+ (type (alist-get 'type (or group toot)))
(toot-foldable
(and mastodon-tl--fold-toots-at-length
(length> body mastodon-tl--fold-toots-at-length))))
@@ -1590,9 +1590,11 @@ NO-BYLINE means just insert toot body, used for folding."
'item-json toot
'base-toot base-toot
'cursor-face 'mastodon-cursor-highlight-face
- 'notification-type type
'toot-foldable toot-foldable
- 'toot-folded (and toot-foldable (not unfolded)))
+ 'toot-folded (and toot-foldable (not unfolded))
+ 'notification-type type
+ 'notification-group group
+ 'notification-accounts accounts)
(if no-byline "" "\n"))))
(defun mastodon-tl--is-reply (toot)