diff options
| author | default <nobody@localhost> | 2025-01-27 16:59:08 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-27 16:59:08 +0100 |
| commit | 82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd (patch) | |
| tree | 004884de626c698c92debbe7727c3788ff880ad2 /activitypub.c | |
| parent | 6097ba55cf96444aac7fb9b74295722e8e5c3810 (diff) | |
Minor optimization in timeline retrieving.
Functions now receive an optional int *more, set to 1 if
there are more than the 'show' requested.
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 cade0d9..bcb733a 100644 --- a/activitypub.c +++ b/activitypub.c @@ -3081,7 +3081,7 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path, int cnt = xs_number_get(xs_dict_get_def(srv_config, "max_public_entries", "20")); /* get the public outbox or the pinned list */ - xs *elems = *p_path == 'o' ? timeline_simple_list(&snac, "public", 0, cnt) : pinned_list(&snac); + xs *elems = *p_path == 'o' ? timeline_simple_list(&snac, "public", 0, cnt, NULL) : pinned_list(&snac); xs_list_foreach(elems, v) { xs *i = NULL; |