diff options
| author | default <nobody@localhost> | 2025-02-06 19:16:49 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-02-06 19:16:49 +0100 |
| commit | f4fee170ce4d02182081f084975c3cd7d9ba4e93 (patch) | |
| tree | a607f7971ac4ad2b3b7746337462fc0244bff7c0 /httpd.c | |
| parent | 22a23dbdd1fca4695c012c31d5e5502f38212ed8 (diff) | |
If 'def_timeline_entries' is not set, 'max_timeline_entries' is used (instead of the default).
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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_def(srv_config, "def_timeline_entries", "50")); + 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) |