branch: elpa/fedi
commit 969a34c5a085ea5e181eac596ad6e246194a3bba
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>

    http: optional :silent arg for post
---
 fedi-http.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fedi-http.el b/fedi-http.el
index e0f155f580c..5e456a5667c 100644
--- a/fedi-http.el
+++ b/fedi-http.el
@@ -148,7 +148,7 @@ SILENT means don't message.
 VECTOR means return json arrays as vectors."
   (car (fedi-http--get-response url params :no-headers silent vector)))
 
-(defun fedi-http--post (url &optional params headers json)
+(defun fedi-http--post (url &optional params headers json silent)
   "POST synchronously to URL, optionally with PARAMS and HEADERS.
 JSON means we are posting a JSON payload, so we add headers and
 json-string PARAMS."
@@ -170,7 +170,7 @@ json-string PARAMS."
           (append url-request-extra-headers ; set in macro
                   headers)))
     (with-temp-buffer
-      (fedi-http--url-retrieve-synchronously url))))
+      (fedi-http--url-retrieve-synchronously url silent))))
 
 (defun fedi-http--delete (url &optional params)
   "Make DELETE request to URL.

Reply via email to