aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-http.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 678e628..cb211d4 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -208,7 +208,8 @@ Pass response buffer to CALLBACK function with args CBARGS."
(mastodon-http--get-async
url
(lambda (status)
- (apply callback (mastodon-http--process-json) args))))
+ (when status ;; only when we actually get sth?
+ (apply callback (mastodon-http--process-json) args)))))
(defun mastodon-http--post-async (url args headers &optional callback &rest cbargs)
"POST asynchronously to URL with ARGS and HEADERS.