projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🚧 Filter new posts using the current Sone
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
template
/
PostAccessor.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/template/PostAccessor.kt
b/src/main/kotlin/net/pterodactylus/sone/template/PostAccessor.kt
index
ab7f6ba
..
42239aa
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/template/PostAccessor.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/template/PostAccessor.kt
@@
-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
private val TemplateContext?.currentSone: Sone? get() = this?.get("currentSone") as? Sone