aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-http.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 94a24fc..8741972 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -118,8 +118,9 @@ Unless UNAUTHENTICATED-P is non-nil."
;; url-build-query-string adds 'nil' for empty params so lets stick with our
;; own:
(mapconcat (lambda (p)
- (concat (url-hexify-string (car p))
- "=" (url-hexify-string (cdr p))))
+ (when (cdr p) ; only when value
+ (concat (url-hexify-string (car p))
+ "=" (url-hexify-string (cdr p)))))
params "&"))
(defun mastodon-http--build-array-params-alist (param-str array)