aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-02-15 14:37:36 +0100
committershtrophic <christoph@liebender.dev>2025-02-15 14:37:36 +0100
commit7611a6bee4bcbad2f1710aafa99aba730e5cf995 (patch)
tree33ab7bee30379e16f6869b2efda5494be8aeb858 /httpd.c
parent3d96c576287736ebdf87e4a7b956842a6c6e055f (diff)
parent3d705b22a67ee913b9bd4473277430bd481cef25 (diff)
Merge tag '2.72' into curl-smtp
Version 2.72 RELEASED.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index e0a36b6..5a38aff 100644
--- a/httpd.c
+++ b/httpd.c
@@ -219,7 +219,8 @@ int server_get_handler(xs_dict *req, const char *q_path,
if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) {
/** search by tag **/
int skip = 0;
- int show = xs_number_get(xs_dict_get(srv_config, "max_timeline_entries"));
+ int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries",
+ xs_dict_get_def(srv_config, "max_timeline_entries", "50")));
const char *v;
if ((v = xs_dict_get(q_vars, "skip")) != NULL)