[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 2a5700a46e 13/47: http: build query str only when
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 2a5700a46e 13/47: http: build query str only when we have a value |
Date: |
Fri, 13 Oct 2023 19:00:55 -0400 (EDT) |
branch: elpa/mastodon
commit 2a5700a46e3d66c049a757856f10eb039cc462fa
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
http: build query str only when we have a value
---
lisp/mastodon-http.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 94a24fcffc..8741972519 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)
- [nongnu] elpa/mastodon updated (9a400d33a5 -> 2cb0a5012a), ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 31908e88a2 14/47: docstring for account search, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 44a075c5e9 16/47: index update, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 15c6a842c3 02/47: url-p: optional @ prefix for "users" url, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon c5aefef00b 06/47: rename two search funs, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 3c52d556fc 07/47: add completing-read for search type + message binding, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 6691dab7aa 04/47: handle search type buffers in buffer-type, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 2cd8a9a38f 08/47: profile:message cycle binding, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 2a5700a46e 13/47: http: build query str only when we have a value,
ELPA Syncer <=
- [nongnu] elpa/mastodon 869917a0e7 09/47: rough account statuses search, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon ab62022b50 15/47: implement following "accounts" search. FIX #493., ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 3e0badc4af 17/47: also message profile search binding, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 433a938c50 22/47: hack to avoid repeat of last search status on calling --more*, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 9bbcc60818 45/47: search headings even if no results, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 8c9f827d12 21/47: tl--more*: add cond to handle search data if in search buffer, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 1b888da280 01/47: readme re friendica, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 16340dbef1 23/47: add user id to user item inserting, for pagination, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon ce30985860 41/47: fix offset pagination for hashtags search, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon f7526642d3 39/47: add fun mastodon-buffer-p, ELPA Syncer, 2023/10/13