summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorKelson Vibber <kvibber@noreply.codeberg.org>2024-05-09 04:42:35 +0000
committerKelson Vibber <kvibber@noreply.codeberg.org>2024-05-09 04:42:35 +0000
commitc17a225ce2f4042b084aa83652aefbacbe03f72c (patch)
tree36cbad81c61f7c558318871c4178f65a6d24f178 /httpd.c
parentbe420cae77c6da69a976e15848989a5e52c56403 (diff)
parent5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6 (diff)
Merge branch 'master' into style-tweaks-on-2.52
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();