Cache actor icon in its own task

This commit is contained in:
Thomas Sileo
2019-08-11 12:07:30 +02:00
parent ae8ed147c7
commit 6a459d0f87
4 changed files with 24 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ def _update_process_inbox(update: ap.Update, new_meta: _NewMeta) -> None:
elif obj.has_type(ap.ACTOR_TYPES):
with no_cache():
actor = ap.fetch_remote_activity(obj.get_actor().id)
update_cached_actor(actor)
update_cached_actor(actor)
@process_inbox.register