- override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) {
- val image = webInterface.core.getImage(request.httpRequest.getPartAsStringFailsafe("image", 36)) ?: throw RedirectException("invalid.html")
- if (!image.sone.isLocal) {
- throw RedirectException("noPermission.html")
- }
- if (request.isPOST) {
- if (request.httpRequest.isPartSet("abortDelete")) {
+ override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {
+ if (freenetRequest.isPOST) {
+ val image = webInterface.core.getImage(freenetRequest.httpRequest.getPartAsStringFailsafe("image", 36)) ?: throw RedirectException("invalid.html")
+ if (!image.sone.isLocal) {
+ throw RedirectException("noPermission.html")
+ }
+ if (freenetRequest.httpRequest.isPartSet("abortDelete")) {