diff options
| author | 2025-09-04 15:30:59 -0300 | |
|---|---|---|
| committer | 2025-09-04 15:30:59 -0300 | |
| commit | 4f5b49bc2476ab6986c3364aa0b88e0cc97040c4 (patch) | |
| tree | a793c69df7ef6c00fbb170905719214662461897 /data.c | |
| parent | Add tzdata to container image (diff) | |
| parent | Merge branch 'master' of grunfink-codeberg:grunfink/snac2 (diff) | |
| download | snac2-4f5b49bc2476ab6986c3364aa0b88e0cc97040c4.tar.gz snac2-4f5b49bc2476ab6986c3364aa0b88e0cc97040c4.tar.xz snac2-4f5b49bc2476ab6986c3364aa0b88e0cc97040c4.zip | |
Merge branch 'master' of https://codeberg.org/daltux/snac2 into docker_tzdata
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 19 |
1 files changed, 16 insertions, 3 deletions
| @@ -2429,8 +2429,8 @@ xs_list *list_timeline(snac *user, const char *list, int skip, int show) | |||
| 2429 | } | 2429 | } |
| 2430 | 2430 | ||
| 2431 | 2431 | ||
| 2432 | xs_val *list_content(snac *user, const char *list, const char *actor_md5, int op) | 2432 | xs_val *list_members(snac *user, const char *list, const char *actor_md5, int op) |
| 2433 | /* list content management */ | 2433 | /* list member management */ |
| 2434 | { | 2434 | { |
| 2435 | xs_val *l = NULL; | 2435 | xs_val *l = NULL; |
| 2436 | 2436 | ||
| @@ -2443,7 +2443,7 @@ xs_val *list_content(snac *user, const char *list, const char *actor_md5, int op | |||
| 2443 | xs *fn = xs_fmt("%s/list/%s.lst", user->basedir, list); | 2443 | xs *fn = xs_fmt("%s/list/%s.lst", user->basedir, list); |
| 2444 | 2444 | ||
| 2445 | switch (op) { | 2445 | switch (op) { |
| 2446 | case 0: /** list content **/ | 2446 | case 0: /** list members **/ |
| 2447 | l = index_list(fn, XS_ALL); | 2447 | l = index_list(fn, XS_ALL); |
| 2448 | 2448 | ||
| 2449 | break; | 2449 | break; |
| @@ -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 | { |