import net.pterodactylus.sone.web.page.FreenetRequest
import net.pterodactylus.util.template.Template
import net.pterodactylus.util.template.TemplateContext
import net.pterodactylus.sone.web.page.FreenetRequest
import net.pterodactylus.util.template.Template
import net.pterodactylus.util.template.TemplateContext
-class BookmarkPage(template: Template, webInterface: WebInterface)
- : SoneTemplatePage("bookmark.html", template, "Page.Bookmark.Title", webInterface) {
+class BookmarkPage @Inject constructor(template: Template, webInterface: WebInterface)
+ : SoneTemplatePage("bookmark.html", webInterface, template, "Page.Bookmark.Title") {
override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
if (freenetRequest.isPOST) {
val returnPage = freenetRequest.httpRequest.getPartAsStringFailsafe("returnPage", 256)
val postId = freenetRequest.httpRequest.getPartAsStringFailsafe("post", 36)
override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
if (freenetRequest.isPOST) {
val returnPage = freenetRequest.httpRequest.getPartAsStringFailsafe("returnPage", 256)
val postId = freenetRequest.httpRequest.getPartAsStringFailsafe("post", 36)