summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 3a459bf..bd79041 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -32,7 +32,8 @@ int activitypub_request(snac *snac, char *url, d_char **data)
32 /* ensure it's ActivityPub data */ 32 /* ensure it's ActivityPub data */
33 ctype = xs_dict_get(response, "content-type"); 33 ctype = xs_dict_get(response, "content-type");
34 34
35 if (xs_str_in(ctype, "application/activity+json") != -1) 35 if (xs_str_in(ctype, "application/activity+json") != -1 ||
36 xs_str_in(ctype, "application/ld+json") != -1)
36 *data = xs_json_loads(payload); 37 *data = xs_json_loads(payload);
37 else 38 else
38 status = 500; 39 status = 500;