From d40e47f70964ad7e41fc06a8aa281db30a24050b Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 3 Sep 2025 06:12:50 +0200 Subject: New function enqueue_collect_outbox(). --- data.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'data.c') diff --git a/data.c b/data.c index ca5e3ed..0ea74b7 100644 --- a/data.c +++ b/data.c @@ -3589,6 +3589,19 @@ void enqueue_collect_replies(snac *user, const char *post) } +void enqueue_collect_outbox(snac *user, const char *actor_id) +/* enqueues a collect outbox request */ +{ + xs *qmsg = _new_qmsg("collect_outbox", actor_id, 0); + const char *ntid = xs_dict_get(qmsg, "ntid"); + xs *fn = xs_fmt("%s/queue/%s.json", user->basedir, ntid); + + qmsg = _enqueue_put(fn, qmsg); + + snac_debug(user, 1, xs_fmt("enqueue_collect_outbox %s", actor_id)); +} + + int was_question_voted(snac *user, const char *id) /* returns true if the user voted in this poll */ { -- cgit v1.2.3