From 9988a4951806975405dce0a1c3fcf8e8a3aa6a04 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 11 Sep 2019 12:49:10 +0100 Subject: [PATCH] use correct link "type" for webfinger response --- modules/fediverse_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/fediverse_server.py b/modules/fediverse_server.py index 0a37cf94..f3a58a86 100644 --- a/modules/fediverse_server.py +++ b/modules/fediverse_server.py @@ -3,8 +3,10 @@ import binascii, os, urllib.parse from src import ModuleManager, utils + ACTIVITY_TYPE = ("application/ld+json; " "profile=\"https://www.w3.org/ns/activitystreams\"") +WEBFINGER_LINK = "application/activity+json" WEBFINGER_TYPE = "application/jrd+json" ACTIVITY_SETTING_PREFIX = "ap-activity-" @@ -87,7 +89,7 @@ class Module(ModuleManager.BaseModule): "links": [{ "href": self_id, "rel": "self", - "type": ACTIVITY_TYPE + "type": WEBFINGER_LINK }], "subject": "acct:%s" % resource })