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 })