diff options
| author | 2025-02-06 19:16:49 +0100 | |
|---|---|---|
| committer | 2025-02-06 19:16:49 +0100 | |
| commit | f4fee170ce4d02182081f084975c3cd7d9ba4e93 (patch) | |
| tree | a607f7971ac4ad2b3b7746337462fc0244bff7c0 | |
| parent | Minor tweak to inbox_list(). (diff) | |
| download | penes-snac2-f4fee170ce4d02182081f084975c3cd7d9ba4e93.tar.gz penes-snac2-f4fee170ce4d02182081f084975c3cd7d9ba4e93.tar.xz penes-snac2-f4fee170ce4d02182081f084975c3cd7d9ba4e93.zip | |
If 'def_timeline_entries' is not set, 'max_timeline_entries' is used (instead of the default).
| -rw-r--r-- | html.c | 3 | ||||
| -rw-r--r-- | httpd.c | 3 |
2 files changed, 4 insertions, 2 deletions
| @@ -3327,7 +3327,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3327 | cache = 0; | 3327 | cache = 0; |
| 3328 | 3328 | ||
| 3329 | int skip = 0; | 3329 | int skip = 0; |
| 3330 | int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50")); | 3330 | int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", |
| 3331 | xs_dict_get_def(srv_config, "max_timeline_entries", "50"))); | ||
| 3331 | int show = def_show; | 3332 | int show = def_show; |
| 3332 | 3333 | ||
| 3333 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) | 3334 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) |
| @@ -219,7 +219,8 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 219 | if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { | 219 | if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { |
| 220 | /** search by tag **/ | 220 | /** search by tag **/ |
| 221 | int skip = 0; | 221 | int skip = 0; |
| 222 | int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50")); | 222 | int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", |
| 223 | xs_dict_get_def(srv_config, "max_timeline_entries", "50"))); | ||
| 223 | const char *v; | 224 | const char *v; |
| 224 | 225 | ||
| 225 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) | 226 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) |