diff options
| author | 2025-09-03 06:12:50 +0200 | |
|---|---|---|
| committer | 2025-09-03 06:12:50 +0200 | |
| commit | d40e47f70964ad7e41fc06a8aa281db30a24050b (patch) | |
| tree | ee44147c2a1077022c624e29b0140a09b463051c /data.c | |
| parent | New function collect_outbox(). (diff) | |
| download | penes-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.c | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -3589,6 +3589,19 @@ void enqueue_collect_replies(snac *user, const char *post) | |||
| 3589 | } | 3589 | } |
| 3590 | 3590 | ||
| 3591 | 3591 | ||
| 3592 | void 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 | |||
| 3592 | int was_question_voted(snac *user, const char *id) | 3605 | int 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 | { |