🎨 Use Kotlin arrow type instead of Predicate
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / IndexPage.kt
index 5e3f905..89d6b93 100644 (file)
@@ -26,7 +26,7 @@ class IndexPage @Inject constructor(webInterface: WebInterface, loaders: Loaders
                                                .flatMap { it.posts } +
                                soneRequest.core.getDirectedPosts(currentSone.id)
                                ).distinct()
-                               .filter { postVisibilityFilter.isVisible(currentSone).test(it) }
+                               .filter { postVisibilityFilter.isVisible(currentSone).invoke(it) }
                                .sortedByDescending { it.time }
                                .let { posts ->
                                        posts.paginate(soneRequest.core.preferences.postsPerPage)