X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FIndexPage.kt;h=5e3f9050574d9779a9b56d7685fde00ade2d19f6;hp=069ef9fa9121a637c59ec9d2715d052f7de44a7e;hb=d3341150dde11b1d510193b71b22db85e426d6fb;hpb=f56d7724c0ed7a87821fac0999c334540d3f797f diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/IndexPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/IndexPage.kt index 069ef9f..5e3f905 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/IndexPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/IndexPage.kt @@ -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).apply(it) } + .filter { postVisibilityFilter.isVisible(currentSone).test(it) } .sortedByDescending { it.time } .let { posts -> posts.paginate(soneRequest.core.preferences.postsPerPage)