commit 56c4711

default  ·  2023-02-02 03:23:56 +0000 UTC
parent 829cdb6
enqueue_output() adds the keyid and seckey args to the q_item.
1 files changed,  +3, -1
M data.c
M data.c
+3, -1
 1@@ -1363,7 +1363,9 @@ void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries)
 2     char *ntid = xs_dict_get(qmsg, "ntid");
 3     xs *fn     = xs_fmt("%s/queue/%s.json", snac->basedir, ntid);
 4 
 5-    qmsg = xs_dict_append(qmsg, "inbox", inbox);
 6+    qmsg = xs_dict_append(qmsg, "inbox",  inbox);
 7+    qmsg = xs_dict_append(qmsg, "keyid",  snac->actor);
 8+    qmsg = xs_dict_append(qmsg, "seckey", xs_dict_get(snac->key, "secret"));
 9 
10     qmsg = _enqueue_put(fn, qmsg);
11