aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@disroot.org>2024-10-29 11:35:09 +0100
committermarty hiatt <martianhiatus@disroot.org>2024-10-29 11:35:09 +0100
commit98c8c3d5c066da085ac540994cc6f8cb1b682a71 (patch)
tree080378a2202e2645a8ea3d8c6843f3352a60bcb9 /lisp/mastodon-http.el
parent77f4c2770dd7f8e5a3c276ff8e89f465ade2411d (diff)
http: return nil if we render html error
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 1093de1..47b96fe 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -243,7 +243,9 @@ Callback to `mastodon-http--get-response-async', usually
;; ideally we should handle the status code in here rather than
;; this crappy hack?
((string-prefix-p "\n<" json-string) ; html hack
- (mastodon-http--render-html-err json-string))
+ ;; NB: in this case, process-response returns t!:
+ (mastodon-http--render-html-err json-string)
+ nil) ;; return nil instead of t
;; if no json or html, maybe we have a plain string error message
;; (misskey does this, but there are probably better ways to do
;; this):