aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-07-26 17:35:58 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-07-26 17:35:58 +0200
commit95e20d688df31d1bae7b99389c7b176f474d12f8 (patch)
tree8f5d7c6dc5bfbcd861ea6bc21efdc5cb41e184c1 /lisp
parentd0a9ced78111175edb4afb8f45e06d2a496e387d (diff)
--thread: fetch current toot before printing thread
fixes #264, where if you fave a toot then enter its thread, fave status is lost.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index cc2f1b8..4309c35 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1138,7 +1138,13 @@ webapp"
(mastodon-tl--property 'base-toot-id)))
(url (mastodon-http--api (format "statuses/%s/context" id)))
(buffer (format "*mastodon-thread-%s*" id))
- (toot (mastodon-tl--property 'toot-json))
+ (toot
+ ;; refetch current toot in case we just faved/boosted:
+ (mastodon-http--get-json (concat
+ mastodon-instance-url
+ "/api/v1/statuses/"
+ id)))
+ (mastodon-tl--property 'toot-json))
(context (mastodon-http--get-json url)))
(when (member (alist-get 'type toot) '("reblog" "favourite"))
(setq toot (alist-get 'status toot)))