aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-09-03 06:12:50 +0200
committergrunfink <grunfink@comam.es>2025-09-03 06:12:50 +0200
commitd40e47f70964ad7e41fc06a8aa281db30a24050b (patch)
treeee44147c2a1077022c624e29b0140a09b463051c /data.c
parent59f3b5465ecca02cb90310fd1dbc46456d6a4908 (diff)
New function enqueue_collect_outbox().
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 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 */
{