Merge pull request #1617 from bookwyrm-social/nodeinfo

Fixes logic on nodeinfo page
This commit is contained in:
Mouse Reeve 2021-11-16 16:55:57 -08:00 committed by GitHub
commit f255b5f21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,
}
)