This commit is contained in:
blankie 2022-10-08 15:42:00 +07:00
parent 5fb7301ce1
commit 0148c1c3f9
Signed by: blankie
GPG key ID: CC15FC822C7F61F5

View file

@ -72,7 +72,6 @@
))
(define (page-file req)
(response-handler
(define wikiname (path/param-path (first (url-path (request-uri req)))))
(define prefixed-title (path/param-path (caddr (url-path (request-uri req)))))
(define origin (format "https://~a.fandom.com" wikiname))
@ -91,7 +90,10 @@
(easy:response-json dest-res)]
[license (license-auto wikiname)])
(define title (jp "/fileTitle" page-data media-detail)))
(if (not (jp "/exists" media-detail #f))
(next-dispatcher)
(response-handler
(define title (jp "/fileTitle" media-detail)))
(define body (generate-results-page
#:source-url source-url
#:wikiname wikiname