From e0b2f1a5eb1dab3b99f974b030bdbb866bd48dae Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 13 Oct 2023 16:00:16 +0200 Subject: mastodon-http--api-search fun (search uses api v2) --- lisp/mastodon-tl.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 25ffcd7..d32b806 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2249,7 +2249,9 @@ PARAMS is used to send any parameters needed to correctly update the current view." (let* ((args `(("max_id" . ,(mastodon-tl--as-string id)))) (args (if params (push (car args) params) args)) - (url (mastodon-http--api endpoint))) + (url (if (string-suffix-p "search" endpoint) + (mastodon-http--api-search) + (mastodon-http--api endpoint)))) (apply #'mastodon-http--get-json-async url args callback cbargs))) (defun mastodon-tl--updated-json (endpoint id &optional params) -- cgit v1.2.3