diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/GlobalFeedFilter.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/GlobalFeedFilter.kt index e2ad47575..ffed429cc 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/GlobalFeedFilter.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/GlobalFeedFilter.kt @@ -27,6 +27,10 @@ object GlobalFeedFilter : FeedFilter() { (it.author?.pubkeyHex !in followUsers) } .filter { account.isAcceptable(it) } + .filter { + // Do not show notes with the creation time exceeding the current time, as they will always stay at the top of the global feed, which is cheating. + it.createdAt()!! <= System.currentTimeMillis() / 1000 + } .toList() val longFormNotes = LocalCache.addressables.values @@ -41,6 +45,10 @@ object GlobalFeedFilter : FeedFilter() { (it.author?.pubkeyHex !in followUsers) } .filter { account.isAcceptable(it) } + .filter { + // Do not show notes with the creation time exceeding the current time, as they will always stay at the top of the global feed, which is cheating. + it.createdAt()!! <= System.currentTimeMillis() / 1000 + } .toList() return (notes + longFormNotes)