From dca43dcfd9e376ee63e5416a4421477371d8d44c Mon Sep 17 00:00:00 2001 From: phiresky Date: Wed, 13 Sep 2023 10:54:10 +0000 Subject: [PATCH] fix a bug where after an hour community follows would be overwritten completely by an incremental upgrade --- crates/federate/src/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/federate/src/worker.rs b/crates/federate/src/worker.rs index f1fbbb9c..3bc6218b 100644 --- a/crates/federate/src/worker.rs +++ b/crates/federate/src/worker.rs @@ -264,7 +264,7 @@ impl InstanceWorker { if (Utc::now() - self.last_full_communities_fetch) > *FOLLOW_REMOVALS_RECHECK_DELAY { // process removals every hour (self.followed_communities, self.last_full_communities_fetch) = self - .get_communities(pool, self.instance.id, self.last_full_communities_fetch) + .get_communities(pool, self.instance.id, Utc.timestamp_nanos(0)) .await?; self.last_incremental_communities_fetch = self.last_full_communities_fetch; }