mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-09 18:08:00 +00:00
fix a couple nodeinfo values
This commit is contained in:
parent
ff95a3033d
commit
78ce1763e0
|
@ -156,9 +156,9 @@ async def webfinger(request):
|
||||||
|
|
||||||
@register_route('GET', '/nodeinfo/{version:\d.\d\.json}')
|
@register_route('GET', '/nodeinfo/{version:\d.\d\.json}')
|
||||||
async def nodeinfo_2_0(request):
|
async def nodeinfo_2_0(request):
|
||||||
version = request.match_info['version'][:3]
|
niversion = request.match_info['version'][:3]
|
||||||
data = {
|
data = {
|
||||||
'openRegistrations': True,
|
'openRegistrations': not request.app.config.whitelist_enabled,
|
||||||
'protocols': ['activitypub'],
|
'protocols': ['activitypub'],
|
||||||
'services': {
|
'services': {
|
||||||
'inbound': [],
|
'inbound': [],
|
||||||
|
@ -177,7 +177,7 @@ async def nodeinfo_2_0(request):
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'peers': request.app.database.hostnames
|
'peers': request.app.database.hostnames
|
||||||
},
|
},
|
||||||
'version': version
|
'version': niversion
|
||||||
}
|
}
|
||||||
|
|
||||||
if version == '2.1':
|
if version == '2.1':
|
||||||
|
|
Loading…
Reference in a new issue