♻️ Turn new elements properties into methods
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / NewPage.kt
index 027aa86..070fc4c 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() + newElements.newReplies().mapPresent { it.post })
                                                .distinct()
                                                .sortedByDescending { it.time }
                                                .let { posts ->