Fixes logic on nodeinfo page

This commit is contained in:
Mouse Reeve 2021-11-16 16:17:38 -08:00
parent d0e431cff5
commit e3fec5885a

View file

@ -108,7 +108,8 @@ def instance_info(_):
"thumbnail": logo,
"languages": ["en"],
"registrations": site.allow_registration,
"approval_required": site.allow_registration and site.allow_invite_requests,
"approval_required": not site.allow_registration
and site.allow_invite_requests,
"email": site.admin_email,
}
)