From c06f1a14cceb02ba702c1a67d6ba97f3badc2a7b Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 27 Jul 2022 10:54:21 +0200 Subject: --thread: use --api for get-json url for toot --- lisp/mastodon-tl.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index d877930..7aef0a1 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1140,10 +1140,8 @@ webapp" (buffer (format "*mastodon-thread-%s*" id)) (toot ;; refetch current toot in case we just faved/boosted: - (mastodon-http--get-json (concat - mastodon-instance-url - "/api/v1/statuses/" - id))) + (mastodon-http--get-json + (mastodon-http--api (concat "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