diff options
| author | marty hiatt <martianhiatus@disroot.org> | 2024-10-29 11:35:09 +0100 | 
|---|---|---|
| committer | marty hiatt <martianhiatus@disroot.org> | 2024-10-29 11:35:09 +0100 | 
| commit | 98c8c3d5c066da085ac540994cc6f8cb1b682a71 (patch) | |
| tree | 080378a2202e2645a8ea3d8c6843f3352a60bcb9 | |
| parent | 77f4c2770dd7f8e5a3c276ff8e89f465ade2411d (diff) | |
http: return nil if we render html error
| -rw-r--r-- | lisp/mastodon-http.el | 4 | 
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):  | 
