mirror of https://gitlab.com/bashrc2/epicyon
Update nodeinfo version
parent
dfc97bf91d
commit
a74e633f83
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue