mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
enqueue_output() adds the keyid and seckey args to the q_item.
This commit is contained in:
parent
829cdb6721
commit
56c4711caf
1 changed files with 3 additions and 1 deletions
4
data.c
4
data.c
|
@ -1363,7 +1363,9 @@ void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries)
|
||||||
char *ntid = xs_dict_get(qmsg, "ntid");
|
char *ntid = xs_dict_get(qmsg, "ntid");
|
||||||
xs *fn = xs_fmt("%s/queue/%s.json", snac->basedir, ntid);
|
xs *fn = xs_fmt("%s/queue/%s.json", snac->basedir, ntid);
|
||||||
|
|
||||||
qmsg = xs_dict_append(qmsg, "inbox", inbox);
|
qmsg = xs_dict_append(qmsg, "inbox", inbox);
|
||||||
|
qmsg = xs_dict_append(qmsg, "keyid", snac->actor);
|
||||||
|
qmsg = xs_dict_append(qmsg, "seckey", xs_dict_get(snac->key, "secret"));
|
||||||
|
|
||||||
qmsg = _enqueue_put(fn, qmsg);
|
qmsg = _enqueue_put(fn, qmsg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue