summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2025-01-27 16:59:08 +0100
committerGravatar default2025-01-27 16:59:08 +0100
commit82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd (patch)
tree004884de626c698c92debbe7727c3788ff880ad2 /activitypub.c
parentNew command-line option 'unmute'. (diff)
downloadsnac2-82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd.tar.gz
snac2-82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd.tar.xz
snac2-82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd.zip
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.c2
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,
3081 int cnt = xs_number_get(xs_dict_get_def(srv_config, "max_public_entries", "20")); 3081 int cnt = xs_number_get(xs_dict_get_def(srv_config, "max_public_entries", "20"));
3082 3082
3083 /* get the public outbox or the pinned list */ 3083 /* get the public outbox or the pinned list */
3084 xs *elems = *p_path == 'o' ? timeline_simple_list(&snac, "public", 0, cnt) : pinned_list(&snac); 3084 xs *elems = *p_path == 'o' ? timeline_simple_list(&snac, "public", 0, cnt, NULL) : pinned_list(&snac);
3085 3085
3086 xs_list_foreach(elems, v) { 3086 xs_list_foreach(elems, v) {
3087 xs *i = NULL; 3087 xs *i = NULL;