Merge pull request 'Adding application endpoint pointer to nodeinfo response' (#318) from JollyDevelopment/pyfedi:jollydev/add-nodeinfo-response-that-points-to-application-endpoint into main

Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/318
This commit is contained in:
rimu 2024-09-04 22:57:19 +00:00
commit b2457545bf

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)