aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-22 15:34:59 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-22 15:34:59 +0100
commit19051d7ada81e5abc56b42de838ab7b26c31bd9b (patch)
treeba77a029c345d618e63bb9da5f6990fc32286914 /lisp/mastodon.el
parentee65d8afcbd113c7a1104cf84b214fb87722b474 (diff)
remove redundant --get-search(-json) funs, use new params --get-json
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index cfe6681..4097b27 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -291,8 +291,9 @@ not, just browse the URL in the normal fashion."
(browse-url query)
(message "Performing lookup...")
(let* ((url (format "%s/api/v2/search" mastodon-instance-url))
- (param '(("resolve" . "t"))) ; webfinger
- (response (mastodon-http--get-search-json url query param :silent)))
+ (params `(("q" . ,query)
+ ("resolve" . "t"))) ; webfinger
+ (response (mastodon-http--get-json url params :silent)))
(cond ((not (seq-empty-p
(alist-get 'statuses response)))
(let* ((statuses (assoc 'statuses response))