- override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) {
- if (request.isPOST) {
- if (request.httpRequest.isPartSet("deleteSone")) {
- webInterface.core.deleteSone(getCurrentSone(request.toadletContext))
+ override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {
+ if (freenetRequest.isPOST) {
+ if (freenetRequest.httpRequest.isPartSet("deleteSone")) {
+ webInterface.core.deleteSone(currentSone)