projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return nullable Post instead of Optional
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
UnbookmarkPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPage.kt
index
01a0fde
..
c742542
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPage.kt
@@
-26,8
+26,8
@@
class UnbookmarkPage(template: Template, webInterface: WebInterface):
}
freenetRequest.isPOST -> {
freenetRequest.parameters["post", 36]
}
freenetRequest.isPOST -> {
freenetRequest.parameters["post", 36]
- .let(webInterface.core::getPost)
- .also(webInterface.core::unbookmarkPost)
+
?
.let(webInterface.core::getPost)
+
?
.also(webInterface.core::unbookmarkPost)
throw RedirectException(freenetRequest.parameters["returnPage", 256])
}
}
throw RedirectException(freenetRequest.parameters["returnPage", 256])
}
}