mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
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:
commit
b2457545bf
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue