aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-media.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-03-13 10:49:58 +0100
committermarty hiatt <martianhiatus@riseup.net>2024-03-13 10:49:58 +0100
commit7384db8e3a0c35bc896803a5701f74fd1b84b8e8 (patch)
tree6a6afbbc67ce51ab7046bb59128a46d1762448ff /lisp/mastodon-media.el
parent79a3f3534bb07d28c2f96eecd2d8e0caf9c15200 (diff)
process-full-sized-image-response - credit rahguzar
Diffstat (limited to 'lisp/mastodon-media.el')
-rw-r--r--lisp/mastodon-media.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el
index 62a41de..77bf680 100644
--- a/lisp/mastodon-media.el
+++ b/lisp/mastodon-media.el
@@ -189,6 +189,8 @@ STATUS-PLIST is a plist of status events as per `url-retrieve'."
(when mastodon-media--enable-image-caching
(unless (url-is-cached url) ;; cache if not already cached
(url-store-in-cache)))
+ ;; thanks to rahguzar for this idea:
+ ;; https://codeberg.org/martianh/mastodon.el/issues/540
(let* ((handle (mm-dissect-buffer t))
(image (mm-get-image handle))
(str (image-property image :data)))