projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix formatting
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
UnfollowSoneAjaxPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.kt
index
229765d
..
6889d04
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.kt
@@
-12,8
+12,8
@@
class UnfollowSoneAjaxPage(webInterface: WebInterface) : LoggedInJsonPage("unfol
override fun createJsonObject(currentSone: Sone, request: FreenetRequest) =
request.parameters["sone"]
override fun createJsonObject(currentSone: Sone, request: FreenetRequest) =
request.parameters["sone"]
- ?.takeIf {
webInterface.
core.getSone(it).isPresent }
- ?.also {
webInterface.
core.unfollowSone(currentSone, it) }
+ ?.takeIf { core.getSone(it).isPresent }
+ ?.also { core.unfollowSone(currentSone, it) }
?.let { createSuccessJsonObject() }
?: createErrorJsonObject("invalid-sone-id")
?.let { createSuccessJsonObject() }
?: createErrorJsonObject("invalid-sone-id")