summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2024-02-22 12:26:32 +0100
committerGravatar default2024-02-22 12:26:32 +0100
commitd4364e80f7b16126e5f6434b2b487603b8354dd9 (patch)
treecc7da36ea96fc942b111a74f842735feba22cac8 /httpd.c
parentReverted ae6aafeb881c075a49eddd834bcfc21e9fc63b18. (diff)
downloadpenes-snac2-d4364e80f7b16126e5f6434b2b487603b8354dd9.tar.gz
penes-snac2-d4364e80f7b16126e5f6434b2b487603b8354dd9.tar.xz
penes-snac2-d4364e80f7b16126e5f6434b2b487603b8354dd9.zip
Added *another argument* to html_timeline() to select where posts are taken from.
This way, the /instance logged-in timeline can show posts that are not really into a user's timeline.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index d10c675..319a7b3 100644
--- a/httpd.c
+++ b/httpd.c
@@ -195,13 +195,13 @@ int server_get_handler(xs_dict *req, const char *q_path,
195 more = 1; 195 more = 1;
196 } 196 }
197 197
198 *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL); 198 *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL, 0);
199 } 199 }
200 else 200 else
201 if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { 201 if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) {
202 /** instance timeline **/ 202 /** instance timeline **/
203 xs *tl = timeline_instance_list(0, 30); 203 xs *tl = timeline_instance_list(0, 30);
204 *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL); 204 *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL, 0);
205 } 205 }
206 else 206 else
207 *body = greeting_html(); 207 *body = greeting_html();