summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-11 09:38:19 +0100
committerdefault <nobody@localhost>2023-01-11 09:38:19 +0100
commit1aac24ca756be5305f0895f7ebfc12a989773975 (patch)
treec0a332a2ba2c8df2e307263dca5a73701d381504 /activitypub.c
parent1438d046a591f88266aac43031c954efe6f0623c (diff)
More keyId/signature tweaks.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/activitypub.c b/activitypub.c
index 4d20487..b316574 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -139,11 +139,6 @@ int send_to_inbox(snac *snac, char *inbox, char *msg, d_char **payload, int *p_s
response = http_signed_request(snac, "POST", inbox,
NULL, j_msg, strlen(j_msg), &status, payload, p_size);
- if (status == 400) {
- snac_debug(snac, 0, xs_fmt("send_to_inbox error %d (response date: '%s')",
- status, xs_dict_get(response, "date")));
- }
-
xs_free(response);
return status;
@@ -839,7 +834,7 @@ int process_message(snac *snac, char *msg, char *req)
}
/* check the signature */
- if (!check_signature(snac, req, actor_o)) {
+ if (!check_signature(snac, req)) {
snac_log(snac, xs_fmt("bad signature %s", actor));
return 1;
}