forked from cadence/breezewiki
Compare commits
No commits in common. "2cd489658af7104d95604fcce7eaeda7f0c46135" and "f6b448ae8f1935c0fce7f90c38fd63091499675e" have entirely different histories.
2cd489658a
...
f6b448ae8f
1 changed files with 2 additions and 5 deletions
|
@ -36,7 +36,7 @@
|
|||
[(eq? content-type #f) `""]
|
||||
[(regexp-match? #rx"^image/" content-type)
|
||||
`(img (@ (src ,(u-proxy-url image-url))))]
|
||||
[(regexp-match? #rx"^audio/|^application/ogg$" content-type)
|
||||
[(regexp-match? #rx"^audio/" content-type)
|
||||
`(audio (@ (src ,(u-proxy-url image-url)) (controls)))]
|
||||
[(regexp-match? #rx"^video/" content-type)
|
||||
`(video (@ (src ,(u-proxy-url image-url)) (controls)))]
|
||||
|
@ -118,10 +118,7 @@
|
|||
(if (not (jp "/exists" media-detail #f))
|
||||
(next-dispatcher)
|
||||
(response-handler
|
||||
(define title (jp "/fileTitle" media-detail ""))
|
||||
(define title (if (non-empty-string? title)
|
||||
(format "File:~a" title)
|
||||
prefixed-title))
|
||||
(define title (jp "/fileTitle" media-detail))
|
||||
(define body (generate-results-page
|
||||
#:source-url source-url
|
||||
#:wikiname wikiname
|
||||
|
|
Loading…
Reference in a new issue