From 3f31449832ec18e27277fae3f5e8bd8059826443 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Tue, 21 Jan 2025 21:14:56 -0800 Subject: [PATCH] don't expire follow activity Objects --- models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models.py b/models.py index 6c238aac..8bf4190e 100644 --- a/models.py +++ b/models.py @@ -71,7 +71,10 @@ # auto delete most old objects via the Object.expire property # https://cloud.google.com/datastore/docs/ttl -DONT_EXPIRE_OBJECT_TYPES = as1.ACTOR_TYPES +# +# need to keep follows because we attach them to Followers and use them for +# unfollows +DONT_EXPIRE_OBJECT_TYPES = as1.ACTOR_TYPES | set(['follow']) OBJECT_EXPIRE_AGE = timedelta(days=90) GET_ORIGINALS_CACHE_EXPIRATION = timedelta(days=1)