🎨 Replace FUTURE_POSTS_FILTER with Kotlin version
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / data / Post.kt
1 package net.pterodactylus.sone.data
2
3 /**
4  * Predicate that returns whether a post is _not_ from the future,
5  * i.e. whether it should be visible now.
6  */
7 @get:JvmName("noFuturePost")
8 val noFuturePost: (Post) -> Boolean = { it.time <= System.currentTimeMillis() }