diff --git a/app.py b/app.py index bfa0d12..d22bd30 100644 --- a/app.py +++ b/app.py @@ -1121,10 +1121,11 @@ def nodeinfo(): response = json.dumps( { - "version": "2.0", + "version": "2.1", "software": { "name": "microblogpub", - "version": f"Microblog.pub {VERSION} ({VERSION_DATE})", + "version": f"{VERSION}", + "repository": "https://github.com/tsileo/microblog.pub", }, "protocols": ["activitypub"], "services": {"inbound": [], "outbound": []}, @@ -1143,7 +1144,7 @@ def nodeinfo(): _cache(response, "api") return Response( headers={ - "Content-Type": "application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#" + "Content-Type": "application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.1#" }, response=response, ) diff --git a/utils/meta.py b/utils/meta.py index b8c8c38..d3381a6 100644 --- a/utils/meta.py +++ b/utils/meta.py @@ -1,5 +1,5 @@ -from enum import unique from enum import Enum +from enum import unique from typing import Any from typing import Dict