- override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) {
- val album = webInterface.core.getAlbum(request.httpRequest.getPartAsStringFailsafe("album", 36))
- templateContext["album"] = album ?: throw RedirectException("invalid.html")
- if (request.isPOST) {
+ override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {
+ if (freenetRequest.isPOST) {
+ val album = webInterface.core.getAlbum(freenetRequest.httpRequest.getPartAsStringFailsafe("album", 36)) ?: throw RedirectException("invalid.html")