From b5aec0d0b1ad88220da966744f977e19555f1964 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 15 Aug 2019 00:00:52 +0200 Subject: [PATCH] Dont cache actor for Update --- core/activitypub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/activitypub.py b/core/activitypub.py index 7f411d2..8a5367d 100644 --- a/core/activitypub.py +++ b/core/activitypub.py @@ -178,7 +178,7 @@ def post_to_inbox(activity: ap.BaseActivity) -> None: save(Box.INBOX, activity) logger.info(f"spawning tasks for {activity!r}") - if not activity.has_type(ap.ActivityType.DELETE): + if not activity.has_type([ap.ActivityType.DELETE, ap.ActivityType.UPDATE]): Tasks.cache_actor(activity.id) Tasks.process_new_activity(activity.id) Tasks.finish_post_to_inbox(activity.id)