summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-09-27 09:38:46 +0200
committerGravatar default2022-09-27 09:38:46 +0200
commit26a3b260d56cedf0ca56b331d8bec71d1a8b49f8 (patch)
tree16168d7f2a96a91d666786af03d1355b3f90b412 /activitypub.c
parent[html.c] new file. (diff)
downloadsnac2-26a3b260d56cedf0ca56b331d8bec71d1a8b49f8.tar.gz
snac2-26a3b260d56cedf0ca56b331d8bec71d1a8b49f8.tar.xz
snac2-26a3b260d56cedf0ca56b331d8bec71d1a8b49f8.zip
Started function not_really_markdown().
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;