This commit is contained in:
blankie 2022-10-08 22:41:43 +07:00
parent 85e23c803a
commit 1c676fd5a0
Signed by: blankie
GPG key ID: CC15FC822C7F61F5

View file

@ -32,7 +32,7 @@
(log-outgoing image-url)
(define dest-res (easy:head image-url #:timeouts timeouts))
(define content-type (easy:response-headers-ref dest-res 'Content-Type))
(cond
`(cond
[(eq? content-type #f) ""]
[(regexp-match? #rx"^image/" content-type)
'(img (@ (src ,(u-proxy-url image-url))))]
@ -67,7 +67,7 @@
`(div
,(if (non-empty-string? video-embed-code)
(update-tree-wiki (html->xexp (preprocess-html-wiki video-embed-code)) wikiname)
`(html-from-url image-url))
(html-from-url image-url))
(p
,(if (non-empty-string? video-embed-code)
`""