aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-07 20:32:13 +0200
committerdefault <nobody@localhost>2024-05-07 20:32:13 +0200
commit82ec4ea95cb1040c5b9b983ec649dbde024d20f8 (patch)
treea40e9e610bcb425a32161c78c0f7d58b691f3207 /httpd.c
parentb57409a9590c737da66c0aaa679a47c2c947fbf8 (diff)
Minor "Back to top" "More..." link refactoring.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/httpd.c b/httpd.c
index 30367c8..81b0853 100644
--- a/httpd.c
+++ b/httpd.c
@@ -200,14 +200,18 @@ int server_get_handler(xs_dict *req, const char *q_path,
*body = timeline_to_rss(NULL, tl, link, link, link);
*ctype = "application/rss+xml; charset=utf-8";
}
- else
- *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL, 0);
+ else {
+ xs *page = xs_fmt("?t=%s", t);
+ xs *title = xs_fmt(L("Search results for #%s"), t);
+ *body = html_timeline(NULL, tl, 0, skip, show, more, title, page, 0);
+ }
}
else
if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) {
/** instance timeline **/
xs *tl = timeline_instance_list(0, 30);
- *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL, 0);
+ *body = html_timeline(NULL, tl, 0, 0, 0, 0,
+ L("Recent posts by users in this instance"), NULL, 0);
}
else
*body = greeting_html();