forked from cadence/breezewiki
`?
This commit is contained in:
parent
91a3d7255f
commit
6d2f5904fe
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
||||||
(log-outgoing image-url)
|
(log-outgoing image-url)
|
||||||
(define dest-res (easy:head image-url #:timeouts timeouts))
|
(define dest-res (easy:head image-url #:timeouts timeouts))
|
||||||
(define content-type (easy:response-headers-ref dest-res "Content-Type"))
|
(define content-type (easy:response-headers-ref dest-res "Content-Type"))
|
||||||
(cond
|
`(cond
|
||||||
[(eq? content-type #f) ""]
|
[(eq? content-type #f) ""]
|
||||||
[(regexp-match? #rx"^image/" content-type)
|
[(regexp-match? #rx"^image/" content-type)
|
||||||
(img (@ (src ,(u-proxy-url image-url))))]
|
(img (@ (src ,(u-proxy-url image-url))))]
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
`(div
|
`(div
|
||||||
,(if (non-empty-string? video-embed-code)
|
,(if (non-empty-string? video-embed-code)
|
||||||
(update-tree-wiki (html->xexp (preprocess-html-wiki video-embed-code)) wikiname)
|
(update-tree-wiki (html->xexp (preprocess-html-wiki video-embed-code)) wikiname)
|
||||||
`(html-from-url image-url))
|
(html-from-url image-url))
|
||||||
(p
|
(p
|
||||||
,(if (non-empty-string? video-embed-code)
|
,(if (non-empty-string? video-embed-code)
|
||||||
`""
|
`""
|
||||||
|
|
Loading…
Reference in a new issue