summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-02 05:21:16 +0100
committerdefault <nobody@localhost>2023-02-02 05:21:16 +0100
commit928f22fbbaec5d52836b217ec7a281b880b23f92 (patch)
tree07990b389795025cbd184dfc79d8807ae96d9a5a /data.c
parentc639553836c4b8aa5e98ca6a48e5464e9aa76057 (diff)
Email notifications have been moved to the global queue.
Diffstat (limited to 'data.c')
-rw-r--r--data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/data.c b/data.c
index 96583aa..da8d422 100644
--- a/data.c
+++ b/data.c
@@ -1389,16 +1389,16 @@ void enqueue_output_by_actor(snac *snac, xs_dict *msg, xs_str *actor, int retrie
}
-void enqueue_email(snac *snac, xs_str *msg, int retries)
+void enqueue_email(xs_str *msg, int retries)
/* enqueues an email message to be sent */
{
xs *qmsg = _new_qmsg("email", msg, retries);
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", srv_basedir, ntid);
qmsg = _enqueue_put(fn, qmsg);
- snac_debug(snac, 1, xs_fmt("enqueue_email %d", retries));
+ srv_debug(1, xs_fmt("enqueue_email %d", retries));
}