diff options
-rw-r--r-- | lisp/mastodon-media.el | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el index 28fbd19..3016d33 100644 --- a/lisp/mastodon-media.el +++ b/lisp/mastodon-media.el @@ -196,17 +196,9 @@ REGION-LENGTH is the range from start to propertize." (condition-case nil ;; catch any errors in url-retrieve so as to not abort ;; whatever called us - (if (url-is-cached url) - ;; if image url is cached, decompress and use it - (with-current-buffer (url-fetch-from-cache url) - (set-buffer-multibyte nil) - (goto-char (point-min)) - (zlib-decompress-region (goto-char (search-forward "\n\n")) (point-max)) - (mastodon-media--process-image-response nil marker image-options region-length url)) - ;; else fetch as usual and process-image-response will cache it - (url-retrieve url - #'mastodon-media--process-image-response - (list marker image-options region-length url))) + (url-retrieve url + #'mastodon-media--process-image-response + (list marker image-options region-length)) (error (with-current-buffer buffer ;; TODO: Consider adding retries (put-text-property marker |