summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-03 06:12:50 +0200
committerGravatar grunfink2025-09-03 06:12:50 +0200
commitd40e47f70964ad7e41fc06a8aa281db30a24050b (patch)
treeee44147c2a1077022c624e29b0140a09b463051c /data.c
parentNew function collect_outbox(). (diff)
downloadpenes-snac2-d40e47f70964ad7e41fc06a8aa281db30a24050b.tar.gz
penes-snac2-d40e47f70964ad7e41fc06a8aa281db30a24050b.tar.xz
penes-snac2-d40e47f70964ad7e41fc06a8aa281db30a24050b.zip
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)
3589} 3589}
3590 3590
3591 3591
3592void enqueue_collect_outbox(snac *user, const char *actor_id)
3593/* enqueues a collect outbox request */
3594{
3595 xs *qmsg = _new_qmsg("collect_outbox", actor_id, 0);
3596 const char *ntid = xs_dict_get(qmsg, "ntid");
3597 xs *fn = xs_fmt("%s/queue/%s.json", user->basedir, ntid);
3598
3599 qmsg = _enqueue_put(fn, qmsg);
3600
3601 snac_debug(user, 1, xs_fmt("enqueue_collect_outbox %s", actor_id));
3602}
3603
3604
3592int was_question_voted(snac *user, const char *id) 3605int was_question_voted(snac *user, const char *id)
3593/* returns true if the user voted in this poll */ 3606/* returns true if the user voted in this poll */
3594{ 3607{