diff options
| author | 2022-12-04 21:28:29 +0100 | |
|---|---|---|
| committer | 2022-12-06 18:27:33 +0100 | |
| commit | a221237637191d70c2e1d18aec82056501f8140f (patch) | |
| tree | bf6b3d11feca118e81e8521b19c6456ec72ad341 /activitypub.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-a221237637191d70c2e1d18aec82056501f8140f.tar.gz snac2-a221237637191d70c2e1d18aec82056501f8140f.tar.xz snac2-a221237637191d70c2e1d18aec82056501f8140f.zip | |
Pagination of the public and private page
Use the query parameters skip and show to control what you can see,
e.g. /alex/admin?skip=0&show=4
Don't use or save the timeline cache if either is set.
The following functions were changed from accepting a single max
parameter to accepting both skip and show:
timeline_simple_list, timeline_list, index_list_desc.
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; |