Update nodeinfo version

main
Bob Mottram 2023-06-25 11:24:09 +01:00
parent dfc97bf91d
commit a74e633f83
2 changed files with 7 additions and 3 deletions

View File

@ -1521,7 +1521,7 @@ class PubServer(BaseHTTPRequestHandler):
if self.path.startswith('/nodeinfo/1.0'):
self._400()
return True
if not self.path.startswith('/nodeinfo/2.0'):
if not self.path.startswith('/nodeinfo/2.'):
return False
if not referer_domain:
if not debug and not self.server.unit_test:

View File

@ -66,6 +66,7 @@ def meta_data_node_info(base_dir: str,
'software': {
'name': 'epicyon',
'repository': 'https://gitlab.com/bashrc2/epicyon',
'homepage': 'https://gitlab.com/bashrc2/epicyon',
'version': version
},
'documents': {
@ -80,8 +81,11 @@ def meta_data_node_info(base_dir: str,
'total': active_accounts
}
},
'metadata': {},
'version': '2.0'
'metadata': {
'chat_enabled': False,
'postFormats': ['text/plain', 'text/html', 'text/markdown']
},
'version': '2.1'
}
return nodeinfo