summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-02-02 04:23:56 +0100
committerGravatar default2023-02-02 04:23:56 +0100
commit56c4711caf99ccc7e3297a2cb4a867998c3e3cae (patch)
treee317bf83d7553687f9eb98b9bd56613e2be53b20
parentMove the #main-key adding back to the origin. (diff)
downloadsnac2-56c4711caf99ccc7e3297a2cb4a867998c3e3cae.tar.gz
snac2-56c4711caf99ccc7e3297a2cb4a867998c3e3cae.tar.xz
snac2-56c4711caf99ccc7e3297a2cb4a867998c3e3cae.zip
enqueue_output() adds the keyid and seckey args to the q_item.
-rw-r--r--data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/data.c b/data.c
index 66cef9f..fd191a5 100644
--- a/data.c
+++ b/data.c
@@ -1363,7 +1363,9 @@ void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries)
1363 char *ntid = xs_dict_get(qmsg, "ntid"); 1363 char *ntid = xs_dict_get(qmsg, "ntid");
1364 xs *fn = xs_fmt("%s/queue/%s.json", snac->basedir, ntid); 1364 xs *fn = xs_fmt("%s/queue/%s.json", snac->basedir, ntid);
1365 1365
1366 qmsg = xs_dict_append(qmsg, "inbox", inbox); 1366 qmsg = xs_dict_append(qmsg, "inbox", inbox);
1367 qmsg = xs_dict_append(qmsg, "keyid", snac->actor);
1368 qmsg = xs_dict_append(qmsg, "seckey", xs_dict_get(snac->key, "secret"));
1367 1369
1368 qmsg = _enqueue_put(fn, qmsg); 1370 qmsg = _enqueue_put(fn, qmsg);
1369 1371