Fixes logic on nodeinfo page
This commit is contained in:
parent
d0e431cff5
commit
e3fec5885a
|
@ -108,7 +108,8 @@ def instance_info(_):
|
||||||
"thumbnail": logo,
|
"thumbnail": logo,
|
||||||
"languages": ["en"],
|
"languages": ["en"],
|
||||||
"registrations": site.allow_registration,
|
"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,
|
"email": site.admin_email,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue