Adding application endpoint pointer to nodeinfo response

This commit is contained in:
Alan Roberts 2024-09-04 16:30:01 -04:00
parent 5ecb66988b
commit 69ad6295a6

View file

@ -117,7 +117,9 @@ def webfinger():
@cache.cached(timeout=600)
def nodeinfo():
nodeinfo_data = {"links": [{"rel": "http://nodeinfo.diaspora.software/ns/schema/2.0",
"href": f"https://{current_app.config['SERVER_NAME']}/nodeinfo/2.0"}]}
"href": f"https://{current_app.config['SERVER_NAME']}/nodeinfo/2.0"},
{"rel": "https://www.w3.org/ns/activitystreams#Application",
"href": f"https://{current_app.config['SERVER_NAME']}/actor"}]}
return jsonify(nodeinfo_data)