X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FLockSoneAjaxPage.kt;h=7b3a9b2e57bb069edff780b67440685fe4a4643f;hp=add66b573f049bf42a1b7c3b88f987c904329576;hb=85b7420f3492af4e5591f62ad673309a76de7e04;hpb=77ada453ff332d62adb0a7820e428f6a0030093f diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.kt index add66b5..7b3a9b2 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.kt @@ -13,8 +13,8 @@ class LockSoneAjaxPage(webInterface: WebInterface) : JsonPage("lockSone.ajax", w override fun createJsonObject(request: FreenetRequest) = request.parameters["sone"] - .let(webInterface.core::getLocalSone) - ?.let(webInterface.core::lockSone) + .let(core::getLocalSone) + ?.let(core::lockSone) ?.let { createSuccessJsonObject() } ?: createErrorJsonObject("invalid-sone-id")