summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-08-18 19:54:53 +0200
committerGravatar grunfink2025-08-18 19:54:53 +0200
commitff52f779b7d47da0274287c01a4cdd19e952c73e (patch)
tree5f8f7e24191253ff6a24df8d5767049503cae591 /data.c
parentFixed typo. (diff)
downloadsnac2-ff52f779b7d47da0274287c01a4cdd19e952c73e.tar.gz
snac2-ff52f779b7d47da0274287c01a4cdd19e952c73e.tar.xz
snac2-ff52f779b7d47da0274287c01a4cdd19e952c73e.zip
New function enqueue_collect_replies().
Diffstat (limited to 'data.c')
-rw-r--r--data.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/data.c b/data.c
index 70bd031..ca5e3ed 100644
--- a/data.c
+++ b/data.c
@@ -3576,6 +3576,19 @@ void enqueue_notify_webhook(snac *user, const xs_dict *noti, int retries)
3576} 3576}
3577 3577
3578 3578
3579void enqueue_collect_replies(snac *user, const char *post)
3580/* enqueues a collect replies request */
3581{
3582 xs *qmsg = _new_qmsg("collect_replies", post, 0);
3583 const char *ntid = xs_dict_get(qmsg, "ntid");
3584 xs *fn = xs_fmt("%s/queue/%s.json", user->basedir, ntid);
3585
3586 qmsg = _enqueue_put(fn, qmsg);
3587
3588 snac_debug(user, 1, xs_fmt("enqueue_collect_replies %s", post));
3589}
3590
3591
3579int was_question_voted(snac *user, const char *id) 3592int was_question_voted(snac *user, const char *id)
3580/* returns true if the user voted in this poll */ 3593/* returns true if the user voted in this poll */
3581{ 3594{