Replace post-specific interfaces with Kotlin versions
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / UnbookmarkPage.kt
index 01a0fde..c742542 100644 (file)
@@ -26,8 +26,8 @@ class UnbookmarkPage(template: Template, webInterface: WebInterface):
                        }
                        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])
                        }
                }