summaryrefslogtreecommitdiff
path: root/mastoapi.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 /mastoapi.c
parentNew command-line option 'unmute'. (diff)
downloadpenes-snac2-82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd.tar.gz
penes-snac2-82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd.tar.xz
penes-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 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 54b4333..3c445c2 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1676,7 +1676,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1676 else 1676 else
1677 if (strcmp(opt, "statuses") == 0) { /** **/ 1677 if (strcmp(opt, "statuses") == 0) { /** **/
1678 /* the public list of posts of a user */ 1678 /* the public list of posts of a user */
1679 xs *timeline = timeline_simple_list(&snac2, "public", 0, 256); 1679 xs *timeline = timeline_simple_list(&snac2, "public", 0, 256, NULL);
1680 xs_list *p = timeline; 1680 xs_list *p = timeline;
1681 const xs_str *v; 1681 const xs_str *v;
1682 1682