Bugfix cache invalidation

This commit is contained in:
Thomas Sileo 2018-09-05 21:47:11 +02:00
parent e3cf7d9ee6
commit 7df8837b34

View file

@ -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()