🎨 Replace future reply filter with Kotlin version
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / template / PostAccessor.kt
index ab7f6ba..42239aa 100644 (file)
@@ -51,5 +51,5 @@ class PostAccessor(private val core: Core) : ReflectionAccessor() {
 
 }
 
-private fun Core.getReplies(post: Post) = getReplies(post.id).filter { Reply.FUTURE_REPLY_FILTER.apply(it) }
+private fun Core.getReplies(post: Post) = getReplies(post.id).filter(noFutureReply)
 private val TemplateContext?.currentSone: Sone? get() = this?.get("currentSone") as? Sone