summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-08 19:29:34 +0200
committerdefault <nobody@localhost>2023-08-08 19:29:34 +0200
commit3e5bb109d14e194958a448a0e2feb55f685afaf2 (patch)
treefb032c24cef0b1ad6c5c41651fff2be6f203fe92 /activitypub.c
parent3611af78d6cec374b75788bc6b01b170bb355f40 (diff)
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,
{
int status;
xs_dict *response;
- xs *j_msg = xs_json_dumps_pp((xs_dict *)msg, 4);
+ xs *j_msg = xs_json_dumps((xs_dict *)msg, 4);
response = http_signed_request_raw(keyid, seckey, "POST", inbox,
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,
status = 404;
if (status == 200 && msg != NULL) {
- *body = xs_json_dumps_pp(msg, 4);
+ *body = xs_json_dumps(msg, 4);
*b_size = strlen(*body);
}