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)
/* 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;