diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 16:00:16 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 16:00:16 +0200 |
commit | e0b2f1a5eb1dab3b99f974b030bdbb866bd48dae (patch) | |
tree | 36aed30830ffdfafe0d0b1c1127a26bc136478e0 /lisp/mastodon-tl.el | |
parent | 3e0badc4af1b128e139d833f29cdc5ee643973cf (diff) |
mastodon-http--api-search fun (search uses api v2)
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 4 |
1 files changed, 3 insertions, 1 deletions
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) |