package net.pterodactylus.sone.web.pages
+import net.pterodactylus.sone.main.*
import net.pterodactylus.sone.utils.mapPresent
import net.pterodactylus.sone.utils.paginate
import net.pterodactylus.sone.utils.parameters
* Page that displays all new posts and replies. The posts are filtered using
* [PostVisibilityFilter.isPostVisible(Sone, Post)] and sorted by time.
*/
-class NewPage @Inject constructor( template: Template, webInterface: WebInterface):
- SoneTemplatePage("new.html", webInterface, template, "Page.New.Title") {
+@MenuName("New")
+class NewPage @Inject constructor( template: Template, webInterface: WebInterface, loaders: Loaders):
+ SoneTemplatePage("new.html", webInterface, loaders, template = template, pageTitleKey = "Page.New.Title") {
override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) =
getCurrentSone(soneRequest.toadletContext).let { currentSone ->