From 7d3a909598c1fc9def2069aeeccda58e305c738a Mon Sep 17 00:00:00 2001 From: poesty Date: Sun, 7 May 2023 13:42:47 +0800 Subject: Fixed webfinger and curl issues --- webfinger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webfinger.c') diff --git a/webfinger.c b/webfinger.c index eb6b2ad..2f11516 100644 --- a/webfinger.c +++ b/webfinger.c @@ -85,7 +85,8 @@ int webfinger_request(const char *qs, char **actor, char **user) if (xs_type(v) == XSTYPE_DICT) { char *type = xs_dict_get(v, "type"); - if (type && strcmp(type, "application/activity+json") == 0) { + if (type && (strcmp(type, "application/activity+json") == 0 || + strcmp(type, "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") == 0)) { *actor = xs_dup(xs_dict_get(v, "href")); break; } -- cgit v1.2.3