diff options
| author | 2022-12-07 08:33:09 +0000 | |
|---|---|---|
| committer | 2022-12-07 08:33:09 +0000 | |
| commit | 060a9fcb3c56f68f871ed7cd9600ca7bf7a67e14 (patch) | |
| tree | 4ba2f6ebe405b62ec89a924f5af02aeeb0ac91aa /activitypub.c | |
| parent | Fixed memory leak. (diff) | |
| parent | Pagination of the public and private page (diff) | |
| download | snac2-060a9fcb3c56f68f871ed7cd9600ca7bf7a67e14.tar.gz snac2-060a9fcb3c56f68f871ed7cd9600ca7bf7a67e14.tar.xz snac2-060a9fcb3c56f68f871ed7cd9600ca7bf7a67e14.zip | |
Merge pull request 'Pagination of the private and public page' (#13) from kensanata/snac2:pagination into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 252c084..7017899 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1094,7 +1094,7 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 1094 | else | 1094 | else |
| 1095 | if (strcmp(p_path, "outbox") == 0) { | 1095 | if (strcmp(p_path, "outbox") == 0) { |
| 1096 | xs *id = xs_fmt("%s/outbox", snac.actor); | 1096 | xs *id = xs_fmt("%s/outbox", snac.actor); |
| 1097 | xs *elems = timeline_simple_list(&snac, "public", 20); | 1097 | xs *elems = timeline_simple_list(&snac, "public", 0, 20); |
| 1098 | xs *list = xs_list_new(); | 1098 | xs *list = xs_list_new(); |
| 1099 | msg = msg_collection(&snac, id); | 1099 | msg = msg_collection(&snac, id); |
| 1100 | char *p, *v; | 1100 | char *p, *v; |