✨ Return filtered elements for new-posts page
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / NewPage.kt
index 070fc4c..a3a8461 100644 (file)
@@ -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 ->