summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
authorGravatar poesty2023-05-07 13:42:47 +0800
committerGravatar poesty2023-05-07 13:42:47 +0800
commit7d3a909598c1fc9def2069aeeccda58e305c738a (patch)
tree0c23bdce8015e3a155c2a267409e8919d6ebb7bf /webfinger.c
parentVersion 2.29 RELEASED. (diff)
downloadsnac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.gz
snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.xz
snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.zip
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)
85 if (xs_type(v) == XSTYPE_DICT) { 85 if (xs_type(v) == XSTYPE_DICT) {
86 char *type = xs_dict_get(v, "type"); 86 char *type = xs_dict_get(v, "type");
87 87
88 if (type && strcmp(type, "application/activity+json") == 0) { 88 if (type && (strcmp(type, "application/activity+json") == 0 ||
89 strcmp(type, "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") == 0)) {
89 *actor = xs_dup(xs_dict_get(v, "href")); 90 *actor = xs_dup(xs_dict_get(v, "href"));
90 break; 91 break;
91 } 92 }