From 6b38c56163698d46649ea8de7c188d4abbb31e72 Mon Sep 17 00:00:00 2001 From: freamon Date: Thu, 13 Jun 2024 17:32:23 +0100 Subject: [PATCH] Quick fix to avert daily_maintenance() crash --- app/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cli.py b/app/cli.py index dd05bf50..318d834a 100644 --- a/app/cli.py +++ b/app/cli.py @@ -255,6 +255,8 @@ def register(app): if 'admins' in instance_data: admin_profile_ids = [] for admin in instance_data['admins']: + if admin['person']['actor_id'].startswith('http://'): + continue # suppo.fi has rogue entry in its v3/site admin_profile_ids.append(admin['person']['actor_id'].lower()) user = find_actor_or_create(admin['person']['actor_id']) if user and not instance.user_is_admin(user.id):