diff options
| author | 2024-05-07 20:32:13 +0200 | |
|---|---|---|
| committer | 2024-05-07 20:32:13 +0200 | |
| commit | 82ec4ea95cb1040c5b9b983ec649dbde024d20f8 (patch) | |
| tree | a40e9e610bcb425a32161c78c0f7d58b691f3207 /httpd.c | |
| parent | Fixed typo. (diff) | |
| download | penes-snac2-82ec4ea95cb1040c5b9b983ec649dbde024d20f8.tar.gz penes-snac2-82ec4ea95cb1040c5b9b983ec649dbde024d20f8.tar.xz penes-snac2-82ec4ea95cb1040c5b9b983ec649dbde024d20f8.zip | |
Minor "Back to top" "More..." link refactoring.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -200,14 +200,18 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 200 | *body = timeline_to_rss(NULL, tl, link, link, link); | 200 | *body = timeline_to_rss(NULL, tl, link, link, link); |
| 201 | *ctype = "application/rss+xml; charset=utf-8"; | 201 | *ctype = "application/rss+xml; charset=utf-8"; |
| 202 | } | 202 | } |
| 203 | else | 203 | else { |
| 204 | *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL, 0); | 204 | xs *page = xs_fmt("?t=%s", t); |
| 205 | xs *title = xs_fmt(L("Search results for #%s"), t); | ||
| 206 | *body = html_timeline(NULL, tl, 0, skip, show, more, title, page, 0); | ||
| 207 | } | ||
| 205 | } | 208 | } |
| 206 | else | 209 | else |
| 207 | if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { | 210 | if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { |
| 208 | /** instance timeline **/ | 211 | /** instance timeline **/ |
| 209 | xs *tl = timeline_instance_list(0, 30); | 212 | xs *tl = timeline_instance_list(0, 30); |
| 210 | *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL, 0); | 213 | *body = html_timeline(NULL, tl, 0, 0, 0, 0, |
| 214 | L("Recent posts by users in this instance"), NULL, 0); | ||
| 211 | } | 215 | } |
| 212 | else | 216 | else |
| 213 | *body = greeting_html(); | 217 | *body = greeting_html(); |