fix a couple nodeinfo values

This commit is contained in:
Izalia Mae 2022-11-09 06:11:16 -05:00
parent ff95a3033d
commit 78ce1763e0

View file

@ -156,9 +156,9 @@ async def webfinger(request):
@register_route('GET', '/nodeinfo/{version:\d.\d\.json}')
async def nodeinfo_2_0(request):
version = request.match_info['version'][:3]
niversion = request.match_info['version'][:3]
data = {
'openRegistrations': True,
'openRegistrations': not request.app.config.whitelist_enabled,
'protocols': ['activitypub'],
'services': {
'inbound': [],
@ -177,7 +177,7 @@ async def nodeinfo_2_0(request):
'metadata': {
'peers': request.app.database.hostnames
},
'version': version
'version': niversion
}
if version == '2.1':