diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2023-05-07 07:34:35 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2023-05-07 07:34:35 +0000 |
commit | 14950d6954ea689c1225df8963372d9b5a2ba4ec (patch) | |
tree | c2484af8006961d95dcf39cf16c3749100a713c9 /webfinger.c | |
parent | 6a1cc55676eaf18ecadb42b86474aaef73cf9805 (diff) | |
parent | e65760a349112abce39404ca50f6bc2f1301bed9 (diff) |
Merge pull request 'Fixed webfinger and curl issues' (#31) from poesty/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/31
Diffstat (limited to 'webfinger.c')
-rw-r--r-- | webfinger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index 765c469..c7b73f7 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; } |