diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-18 11:43:46 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-18 11:43:46 +0200 |
commit | 1cd94d7ee146b14c8fc97420ff57aa2205bc2e58 (patch) | |
tree | 3c6ff77dbb1df65effc40821493f72becf256668 /lisp/mastodon-search.el | |
parent | 4dce2b78efbe9045379171b1c6a82bc25c5ef83d (diff) |
mastodon-http--api-search -> mastodon-http--api-v2
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r-- | lisp/mastodon-search.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index 306e7c8..0c7f746 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -78,7 +78,7 @@ Returns a nested list containing user handle, display name, and URL." (defun mastodon-search--search-tags-query (query) "Return an alist containing tag strings plus their URLs. QUERY is the string to search." - (let* ((url (mastodon-http--api-search)) + (let* ((url (mastodon-http--api-v2 "search")) (params `(("q" . ,query) ("type" . "hashtags"))) (response (mastodon-http--get-json url params :silent)) (tags (alist-get 'hashtags response))) @@ -153,7 +153,7 @@ OFFSET is a number as string, means to skip that many results. It is used for pagination." ;; TODO: handle no results (interactive "sSearch mastodon for: ") - (let* ((url (mastodon-http--api-search)) + (let* ((url (mastodon-http--api-v2 "search")) (following (when (or following (equal current-prefix-arg '(4))) "true")) (type (or type |