aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-07-27 10:54:21 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-07-27 10:54:21 +0200
commitc06f1a14cceb02ba702c1a67d6ba97f3badc2a7b (patch)
treed12d5e52b5be57cf909f0524b3019baa94ac8a3e
parent21358f53ff222f8b2da1dbc0b5242a9ac0c2bda6 (diff)
--thread: use --api for get-json url for toot
-rw-r--r--lisp/mastodon-tl.el6
1 files 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)))