diff options
| author | 2023-05-07 13:42:47 +0800 | |
|---|---|---|
| committer | 2023-05-07 13:42:47 +0800 | |
| commit | 7d3a909598c1fc9def2069aeeccda58e305c738a (patch) | |
| tree | 0c23bdce8015e3a155c2a267409e8919d6ebb7bf /webfinger.c | |
| parent | Version 2.29 RELEASED. (diff) | |
| download | penes-snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.gz penes-snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.xz penes-snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.zip | |
Fixed webfinger and curl issues
Diffstat (limited to '')
| -rw-r--r-- | webfinger.c | 3 |
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 | } |