aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-20 16:05:09 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-20 16:05:09 +0200
commitbdf8f50edb3e44401657f8851b3ecef0ce3f0f1c (patch)
treec391e19222f42277ced72b6f63f566f4c74d3443
parent88895d0c8307f27c643171cc7095c876856fe300 (diff)
tl--insert-status: fetch base-toot-id from parent-toot if present
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index aab0509..de08971 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -898,7 +898,9 @@ PARENT-TOOT is the JSON of the toot responded to."
(mastodon-tl--byline toot author-byline action-byline))
'toot-id (or id ; for notifications
(alist-get 'id toot))
- 'base-toot-id (mastodon-tl--toot-id toot)
+ 'base-toot-id (mastodon-tl--toot-id
+ ;; if a favourite/boost notif, get ID of toot responded to:
+ (or parent-toot toot))
'toot-json toot
'parent-toot parent-toot)
"\n")