aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-08-19 15:34:22 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-08-19 15:34:37 +0200
commitf9e8522ae3ef3bd022ae81893acb414e9741b905 (patch)
tree34c2a577e41105f213a7c0b7ce3197ce324f375d
parentffcd7553d708c775127946dfe638cba0cda34312 (diff)
remove old call to http--api-search
-rw-r--r--lisp/mastodon-profile.el3
-rw-r--r--lisp/mastodon-search.el1
-rw-r--r--lisp/mastodon-tl.el1
3 files changed, 2 insertions, 3 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 093e0a8..5f33ce2 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -837,7 +837,8 @@ If the handle does not match a search return then retun NIL."
handle))
(args `(("q" . ,handle)
("type" . "accounts")))
- (result (mastodon-http--get-json (mastodon-http--api-search) args))
+ (result (mastodon-http--get-json
+ (mastodon-http--api-v2 "search") args))
(matching-account (seq-remove
(lambda (x)
(not (string= handle (alist-get 'acct x))))
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index 0c7f746..f51247b 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -44,7 +44,6 @@
(autoload 'mastodon-tl--timeline "mastodon-tl")
(autoload 'mastodon-tl--toot "mastodon-tl")
(autoload 'mastodon-tl--buffer-property "mastodon-tl")
-(autoload 'mastodon-http--api-search "mastodon-http")
(defvar mastodon-toot--completion-style-for-mentions)
(defvar mastodon-instance-url)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index b83a20f..ac4347b 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -83,7 +83,6 @@
(autoload 'mastodon-toot--set-toot-properties "mastodon-toot")
(autoload 'mastodon-toot--update-status-fields "mastodon-toot")
(autoload 'mastodon-search--buf-type "mastodon-search")
-(autoload 'mastodon-http--api-search "mastodon-http")
(autoload 'mastodon-views--insert-users-propertized-note "mastodon-views") ; for search pagination
(autoload 'mastodon-http--get-response "mastodon-http")
(autoload 'mastodon-search--insert-heading "mastodon-search")