diff --git a/daemon.py b/daemon.py index d612cf440..2a39236f7 100644 --- a/daemon.py +++ b/daemon.py @@ -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: diff --git a/metadata.py b/metadata.py index 42796619a..d146729bb 100644 --- a/metadata.py +++ b/metadata.py @@ -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