From f4fee170ce4d02182081f084975c3cd7d9ba4e93 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 6 Feb 2025 19:16:49 +0100 Subject: If 'def_timeline_entries' is not set, 'max_timeline_entries' is used (instead of the default). --- html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 13615b9..c12aea4 100644 --- a/html.c +++ b/html.c @@ -3327,7 +3327,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, cache = 0; int skip = 0; - int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50")); + int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", + xs_dict_get_def(srv_config, "max_timeline_entries", "50"))); int show = def_show; if ((v = xs_dict_get(q_vars, "skip")) != NULL) -- cgit v1.2.3