Dont cache actor for Update

This commit is contained in:
Thomas Sileo 2019-08-15 00:00:52 +02:00
parent 76bb3b59d1
commit b5aec0d0b1

View file

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