X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FNewPage.kt;h=a3a8461b72b07119470840f219038204ffcb04f6;hb=e12cdcb23b4549e1daf9fe498b01029cc289f75d;hp=027aa8602817d64c11e8ad4d32aeb6b21971790d;hpb=05d126a69fbd464bea6aa974cff52dc4e5d5b2a6;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/NewPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/NewPage.kt index 027aa86..a3a8461 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/NewPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/NewPage.kt @@ -26,7 +26,7 @@ class NewPage @Inject constructor(webInterface: WebInterface, loaders: Loaders, override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) = getCurrentSone(soneRequest.toadletContext).let { currentSone -> - (newElements.newPosts + newElements.newReplies.mapPresent { it.post }) + (newElements.newPosts(currentSone) + newElements.newReplies(currentSone).mapPresent { it.post }) .distinct() .sortedByDescending { it.time } .let { posts ->