From a74e633f83487e9391f1d36cd9cc9aae6059b979 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Jun 2023 11:24:09 +0100 Subject: [PATCH] Update nodeinfo version --- daemon.py | 2 +- metadata.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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