summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
authorpoesty <poesty7450@gmail.com>2023-05-07 13:42:47 +0800
committerpoesty <poesty7450@gmail.com>2023-05-07 13:42:47 +0800
commit7d3a909598c1fc9def2069aeeccda58e305c738a (patch)
tree0c23bdce8015e3a155c2a267409e8919d6ebb7bf /webfinger.c
parentfbd30cf6d343651c53d5761b94fdaa04b867f416 (diff)
Fixed webfinger and curl issues
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c3
1 files changed, 2 insertions, 1 deletions
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;
}