projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Use Java’s Predicate in post visibility filter
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
IndexPage.kt
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
(file)
--- 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()
.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)
.sortedByDescending { it.time }
.let { posts ->
posts.paginate(soneRequest.core.preferences.postsPerPage)