From 7df8837b34dd7f65c4f964c2184c7c49572ee462 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 5 Sep 2018 21:47:11 +0200 Subject: [PATCH] Bugfix cache invalidation --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 96b185b..7a2f64d 100644 --- a/tasks.py +++ b/tasks.py @@ -324,7 +324,7 @@ def invalidate_cache(activity): if activity.get_object().id.startswith(BASE_URL): DB.cache2.remove() elif activity.has_type(ap.ActivityType.ANNOUNCE): - if activity.get_object.id.startswith(BASE_URL): + if activity.get_object().id.startswith(BASE_URL): DB.cache2.remove() elif activity.has_type(ap.ActivityType.UNDO): DB.cache2.remove()