mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Tweak the NodeInfo output
This commit is contained in:
parent
b00263c817
commit
a6bd6ee7b3
2 changed files with 5 additions and 4 deletions
7
app.py
7
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,
|
||||
)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from enum import unique
|
||||
from enum import Enum
|
||||
from enum import unique
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
|
||||
|
|
Loading…
Reference in a new issue