- override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
- if (freenetRequest.isPOST) {
- getCurrentSone(freenetRequest.toadletContext)!!.also { currentSone ->
- freenetRequest.parameters["sone"]!!.split(Regex("[ ,]+"))
- .forEach { webInterface.core.unfollowSone(currentSone, it) }
- }
- throw RedirectException(freenetRequest.parameters["returnPage", 256])
+ override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) {
+ if (soneRequest.isPOST) {
+ soneRequest.parameters["sone"]!!.split(Regex("[ ,]+"))
+ .forEach { soneRequest.core.unfollowSone(currentSone, it) }
+ throw RedirectException(soneRequest.parameters["returnPage", 256])