projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expose core as member of JsonPage
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
UnlockSoneAjaxPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt
index
2dffbed
..
18129f3
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.kt
@@
-13,9
+13,9
@@
class UnlockSoneAjaxPage(webInterface: WebInterface) : JsonPage("unlockSone.ajax
override fun createJsonObject(request: FreenetRequest) =
request.parameters["sone"]
override fun createJsonObject(request: FreenetRequest) =
request.parameters["sone"]
- ?.let(
webInterface.
core::getLocalSone)
- ?.also(
webInterface.
core::unlockSone)
- ?.also {
webInterface.
core.touchConfiguration() }
+ ?.let(core::getLocalSone)
+ ?.also(core::unlockSone)
+ ?.also { core.touchConfiguration() }
?.let { createSuccessJsonObject() }
?: createErrorJsonObject("invalid-sone-id")
?.let { createSuccessJsonObject() }
?: createErrorJsonObject("invalid-sone-id")