From 4d4c7d5b721f46a307b107d957434b79e8086bf5 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 13 Mar 2025 17:38:05 -0400 Subject: [PATCH] Moves DVM's last announcement restriction from 90 days to 365 days --- .../vitorpamplona/amethyst/ui/dal/DiscoverNIP89FeedFilter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/DiscoverNIP89FeedFilter.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/DiscoverNIP89FeedFilter.kt index da10b3858..6fc4cf22c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/DiscoverNIP89FeedFilter.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/DiscoverNIP89FeedFilter.kt @@ -31,7 +31,7 @@ import com.vitorpamplona.quartz.utils.TimeUtils open class DiscoverNIP89FeedFilter( val account: Account, ) : AdditiveFeedFilter() { - val lastAnnounced = 90 * 24 * 60 * 60 // 90 Days ago + val lastAnnounced = 365 * 24 * 60 * 60 // 365 Days ago // TODO better than announced would be last active, as this requires the DVM provider to regularly update the NIP89 announcement override fun feedKey(): String = account.userProfile().pubkeyHex + "-" + followList() @@ -43,8 +43,6 @@ open class DiscoverNIP89FeedFilter( followList() == MuteListEvent.blockListFor(account.userProfile().pubkeyHex) override fun feed(): List { - val filterParams = buildFilterParams(account) - val notes = LocalCache.addressables.filterIntoSet { _, it -> acceptDVM(it)