From 69ad6295a6bc61714c7b86f91458f2108200c9fb Mon Sep 17 00:00:00 2001 From: Alan Roberts Date: Wed, 4 Sep 2024 16:30:01 -0400 Subject: [PATCH] Adding application endpoint pointer to nodeinfo response --- app/activitypub/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 4e911c3a..791c68ad 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -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)