- override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) {
- if (request.isPOST) {
- val album = webInterface.core.getAlbum(request.httpRequest.getPartAsStringFailsafe("album", 36)) ?: throw RedirectException("invalid.html")
- album.takeUnless { it.sone.isLocal }?.run { throw RedirectException("noPermission.html") }
- if (request.httpRequest.getPartAsStringFailsafe("moveLeft", 4) == "true") {
+ override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) {
+ if (soneRequest.isPOST) {
+ val album = soneRequest.core.getAlbum(soneRequest.httpRequest.getPartAsStringFailsafe("album", 36)) ?: redirectTo("invalid.html")
+ album.takeUnless { it.sone.isLocal }?.run { redirectTo("noPermission.html") }
+ if (soneRequest.httpRequest.getPartAsStringFailsafe("moveLeft", 4) == "true") {