summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-08-08 19:29:34 +0200
committerGravatar default2023-08-08 19:29:34 +0200
commit3e5bb109d14e194958a448a0e2feb55f685afaf2 (patch)
treefb032c24cef0b1ad6c5c41651fff2be6f203fe92 /activitypub.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-3e5bb109d14e194958a448a0e2feb55f685afaf2.tar.gz
snac2-3e5bb109d14e194958a448a0e2feb55f685afaf2.tar.xz
snac2-3e5bb109d14e194958a448a0e2feb55f685afaf2.zip
Renamed json dump functions to new xs spec.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 1fb09c6..fdccf1c 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -294,7 +294,7 @@ int send_to_inbox_raw(const char *keyid, const char *seckey,
294{ 294{
295 int status; 295 int status;
296 xs_dict *response; 296 xs_dict *response;
297 xs *j_msg = xs_json_dumps_pp((xs_dict *)msg, 4); 297 xs *j_msg = xs_json_dumps((xs_dict *)msg, 4);
298 298
299 response = http_signed_request_raw(keyid, seckey, "POST", inbox, 299 response = http_signed_request_raw(keyid, seckey, "POST", inbox,
300 NULL, j_msg, strlen(j_msg), &status, payload, p_size, timeout); 300 NULL, j_msg, strlen(j_msg), &status, payload, p_size, timeout);
@@ -2028,7 +2028,7 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
2028 status = 404; 2028 status = 404;
2029 2029
2030 if (status == 200 && msg != NULL) { 2030 if (status == 200 && msg != NULL) {
2031 *body = xs_json_dumps_pp(msg, 4); 2031 *body = xs_json_dumps(msg, 4);
2032 *b_size = strlen(*body); 2032 *b_size = strlen(*body);
2033 } 2033 }
2034 2034