diff options
| author | 2025-01-27 16:59:08 +0100 | |
|---|---|---|
| committer | 2025-01-27 16:59:08 +0100 | |
| commit | 82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd (patch) | |
| tree | 004884de626c698c92debbe7727c3788ff880ad2 /mastoapi.c | |
| parent | New command-line option 'unmute'. (diff) | |
| download | penes-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||