aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-search.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-21 22:01:07 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-21 23:08:46 +0100
commit9b9431b130c1d8d1a03e445ae1f7803d2a511d70 (patch)
treeb90bd1f537db44e8e89dd2d21c903c5114eb94d5 /lisp/mastodon-search.el
parentcba97969ea0c21acd8ddf5d5c531aaf252092e97 (diff)
params always in http.el, only ever send alists from elsewhere.
probably incomplete but mostly done.
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r--lisp/mastodon-search.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index 31fcae3..fee79c4 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -61,7 +61,7 @@ Returns a nested list containing user handle, display name, and URL."
(interactive "sSearch mastodon for: ")
(let* ((url (mastodon-http--api "accounts/search"))
(response (if (equal mastodon-toot--completion-style-for-mentions "following")
- (mastodon-http--get-search-json url query "following=true")
+ (mastodon-http--get-search-json url query '(("following" . "true")))
(mastodon-http--get-search-json url query))))
(mapcar #'mastodon-search--get-user-info-@ response)))
@@ -72,7 +72,7 @@ Returns a nested list containing user handle, display name, and URL."
QUERY is the string to search."
(interactive "sSearch for hashtag: ")
(let* ((url (format "%s/api/v2/search" mastodon-instance-url))
- (type-param (concat "type=hashtags"))
+ (type-param '(("type" . "hashtags")))
(response (mastodon-http--get-search-json url query type-param))
(tags (alist-get 'hashtags response)))
(mapcar #'mastodon-search--get-hashtag-info tags)))