Expose core as member of JsonPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / UntrustAjaxPage.kt
index e622554..c6274a2 100644 (file)
@@ -14,8 +14,8 @@ class UntrustAjaxPage(webInterface: WebInterface) : LoggedInJsonPage("untrustSon
 
        override fun createJsonObject(currentSone: Sone, request: FreenetRequest) =
                        request.parameters["sone"]
-                                       ?.let(webInterface.core::getSone)
-                                       ?.also { webInterface.core.untrustSone(currentSone, it) }
+                                       ?.let(core::getSone)
+                                       ?.also { core.untrustSone(currentSone, it) }
                                        ?.let { createSuccessJsonObject() }
                                        ?: createErrorJsonObject("invalid-sone-id")