summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
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,
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();