diff options
| author | 2025-02-06 09:04:36 +0100 | |
|---|---|---|
| committer | 2025-02-06 09:04:36 +0100 | |
| commit | 8e1a2c5ff92d01789e02980f2e36c8808c8ea033 (patch) | |
| tree | 4502578f8dbd5e4a9e383cdd54875fb46daf9f7a | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | penes-snac2-8e1a2c5ff92d01789e02980f2e36c8808c8ea033.tar.gz penes-snac2-8e1a2c5ff92d01789e02980f2e36c8808c8ea033.tar.xz penes-snac2-8e1a2c5ff92d01789e02980f2e36c8808c8ea033.zip | |
Merged 53ad5cdf0371fc068fa03bf287fc94be.
| -rw-r--r-- | RELEASE_NOTES.md | 2 | ||||
| -rw-r--r-- | doc/snac.8 | 2 | ||||
| -rw-r--r-- | html.c | 2 | ||||
| -rw-r--r-- | httpd.c | 2 | ||||
| -rw-r--r-- | utils.c | 1 |
5 files changed, 7 insertions, 2 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 78f5694..8e95766 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md | |||
| @@ -12,6 +12,8 @@ Fixed link detection in posts (contributed by inz). | |||
| 12 | 12 | ||
| 13 | Allow multiple editors for command-line posts (contributed by inz). | 13 | Allow multiple editors for command-line posts (contributed by inz). |
| 14 | 14 | ||
| 15 | Separated maximum and default timeline entry count, allowing larger timelines to be requested without having to increase the default (contributed by lxo). | ||
| 16 | |||
| 15 | Special thanks to fellow developer inz for bringing my attention to code places where I should have been more careful. | 17 | Special thanks to fellow developer inz for bringing my attention to code places where I should have been more careful. |
| 16 | 18 | ||
| 17 | ## 2.71 | 19 | ## 2.71 |
| @@ -154,6 +154,8 @@ to those servers that went timeout in the previous retry. If you want to | |||
| 154 | give slow servers a chance to receive your messages, you can increase this | 154 | give slow servers a chance to receive your messages, you can increase this |
| 155 | value (but also take into account that processing the queue will take longer | 155 | value (but also take into account that processing the queue will take longer |
| 156 | while waiting for these molasses to respond). | 156 | while waiting for these molasses to respond). |
| 157 | .It Ic def_timeline_entries | ||
| 158 | This is the default timeline entries shown in the web interface. | ||
| 157 | .It Ic max_timeline_entries | 159 | .It Ic max_timeline_entries |
| 158 | This is the maximum timeline entries shown in the web interface. | 160 | This is the maximum timeline entries shown in the web interface. |
| 159 | .It Ic timeline_purge_days | 161 | .It Ic timeline_purge_days |
| @@ -3306,7 +3306,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3306 | cache = 0; | 3306 | cache = 0; |
| 3307 | 3307 | ||
| 3308 | int skip = 0; | 3308 | int skip = 0; |
| 3309 | int def_show = xs_number_get(xs_dict_get(srv_config, "max_timeline_entries")); | 3309 | int def_show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50")); |
| 3310 | int show = def_show; | 3310 | int show = def_show; |
| 3311 | 3311 | ||
| 3312 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) | 3312 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) |
| @@ -219,7 +219,7 @@ 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(srv_config, "max_timeline_entries")); | 222 | int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", "50")); |
| 223 | const char *v; | 223 | const char *v; |
| 224 | 224 | ||
| 225 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) | 225 | if ((v = xs_dict_get(q_vars, "skip")) != NULL) |
| @@ -28,6 +28,7 @@ static const char *default_srv_config = "{" | |||
| 28 | "\"queue_timeout\": 6," | 28 | "\"queue_timeout\": 6," |
| 29 | "\"queue_timeout_2\": 8," | 29 | "\"queue_timeout_2\": 8," |
| 30 | "\"cssurls\": [\"\"]," | 30 | "\"cssurls\": [\"\"]," |
| 31 | "\"def_timeline_entries\": 50," | ||
| 31 | "\"max_timeline_entries\": 50," | 32 | "\"max_timeline_entries\": 50," |
| 32 | "\"timeline_purge_days\": 120," | 33 | "\"timeline_purge_days\": 120," |
| 33 | "\"local_purge_days\": 0," | 34 | "\"local_purge_days\": 0," |