diff options
author | default <nobody@localhost> | 2022-09-27 09:38:46 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-27 09:38:46 +0200 |
commit | 26a3b260d56cedf0ca56b331d8bec71d1a8b49f8 (patch) | |
tree | 16168d7f2a96a91d666786af03d1355b3f90b412 /activitypub.c | |
parent | e0c01956166c9fe14b734750e82f7c209ffcf499 (diff) |
Started function not_really_markdown().
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 3 |
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) /* ensure it's ActivityPub data */ ctype = xs_dict_get(response, "content-type"); - if (xs_str_in(ctype, "application/activity+json") != -1) + if (xs_str_in(ctype, "application/activity+json") != -1 || + xs_str_in(ctype, "application/ld+json") != -1) *data = xs_json_loads(payload); else status = 500; |