commit f4fee17
default
·
2025-02-06 18:16:49 +0000 UTC
parent 22a23db
If 'def_timeline_entries' is not set, 'max_timeline_entries' is used (instead of the default).
M
html.c
+2,
-1
1@@ -3327,7 +3327,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 cache = 0;
3
4 int skip = 0;
5- int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50"));
6+ int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries",
7+ xs_dict_get_def(srv_config, "max_timeline_entries", "50")));
8 int show = def_show;
9
10 if ((v = xs_dict_get(q_vars, "skip")) != NULL)
M
httpd.c
+2,
-1
1@@ -219,7 +219,8 @@ int server_get_handler(xs_dict *req, const char *q_path,
2 if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) {
3 /** search by tag **/
4 int skip = 0;
5- int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50"));
6+ int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries",
7+ xs_dict_get_def(srv_config, "max_timeline_entries", "50")));
8 const char *v;
9
10 if ((v = xs_dict_get(q_vars, "skip")) != NULL)