mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Quick fix to avert daily_maintenance() crash
This commit is contained in:
parent
95f6475792
commit
6b38c56163
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue