From ae945fd051cb7acf6843002eb0634b2757ba06b8 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 26 Jul 2022 17:35:58 +0200 Subject: --thread: fetch current toot before printing thread fixes #264, where if you fave a toot then enter its thread, fave status is lost. --- lisp/mastodon-tl.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index cc2f1b8..d877930 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1138,7 +1138,12 @@ 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))) (context (mastodon-http--get-json url))) (when (member (alist-get 'type toot) '("reblog" "favourite")) (setq toot (alist-get 'status toot))) -- cgit v1.2.3