diff options
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) | |||
| 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 | } |