fix(federation/tasks/refresh_actor_data): skip refreshing local actors
Solves disappearing local avatars
This commit is contained in:
parent
5b4c8614be
commit
622369c62b
|
@ -633,6 +633,10 @@ def fetch_collection(url, max_pages, channel, is_page=False):
|
|||
def refresh_actor_data():
|
||||
actors = models.Actor.objects.all().prefetch_related()
|
||||
for actor in actors:
|
||||
if actor.is_local:
|
||||
# skip refreshing local actors
|
||||
continue
|
||||
|
||||
try:
|
||||
data = actors_utils.get_actor_data(actor.fid)
|
||||
except HTTPError as e:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Skip refreshing local actors in celery federation.refresh_actor_data task - fixes disappearing avatars (!1873)
|
Loading…
Reference in New Issue