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'):
|
if self.path.startswith('/nodeinfo/1.0'):
|
||||||
self._400()
|
self._400()
|
||||||
return True
|
return True
|
||||||
if not self.path.startswith('/nodeinfo/2.0'):
|
if not self.path.startswith('/nodeinfo/2.'):
|
||||||
return False
|
return False
|
||||||
if not referer_domain:
|
if not referer_domain:
|
||||||
if not debug and not self.server.unit_test:
|
if not debug and not self.server.unit_test:
|
||||||
|
|
|
@ -66,6 +66,7 @@ def meta_data_node_info(base_dir: str,
|
||||||
'software': {
|
'software': {
|
||||||
'name': 'epicyon',
|
'name': 'epicyon',
|
||||||
'repository': 'https://gitlab.com/bashrc2/epicyon',
|
'repository': 'https://gitlab.com/bashrc2/epicyon',
|
||||||
|
'homepage': 'https://gitlab.com/bashrc2/epicyon',
|
||||||
'version': version
|
'version': version
|
||||||
},
|
},
|
||||||
'documents': {
|
'documents': {
|
||||||
|
@ -80,8 +81,11 @@ def meta_data_node_info(base_dir: str,
|
||||||
'total': active_accounts
|
'total': active_accounts
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'metadata': {},
|
'metadata': {
|
||||||
'version': '2.0'
|
'chat_enabled': False,
|
||||||
|
'postFormats': ['text/plain', 'text/html', 'text/markdown']
|
||||||
|
},
|
||||||
|
'version': '2.1'
|
||||||
}
|
}
|
||||||
return nodeinfo
|
return nodeinfo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue