aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-10-29 16:32:24 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-10-29 16:32:24 +0200
commitf6b983e04fe3ac091398dd74cdbf3a986b969b2a (patch)
tree6c41dafc51d90c2661b69177e61c6a7ad8b272fe /lisp/mastodon-http.el
parent946758ebf2fb9ffc8773c2fa072c79fea143d24c (diff)
working meta fields update
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index f32ccd4..0491927 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -211,14 +211,16 @@ Optionally specify the PARAMS to send."
(with-current-buffer (mastodon-http--patch url params)
(mastodon-http--process-json)))
-(defun mastodon-http--patch (base-url &optional params)
+(defun mastodon-http--patch (base-url &optional params no-build)
"Make synchronous PATCH request to BASE-URL.
Optionally specify the PARAMS to send."
(mastodon-http--authorized-request
"PATCH"
(let ((url
(concat base-url "?"
- (mastodon-http--build-query-string params))))
+ (if no-build
+ params
+ (mastodon-http--build-query-string params)))))
(mastodon-http--url-retrieve-synchronously url))))
;; Asynchronous functions