diff --git a/html.c b/html.c
index 4e29bd7..e89fdfb 100644
--- a/html.c
+++ b/html.c
@@ -2060,7 +2060,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
html_top_controls(user));
/* show links to the available lists */
- {
+ if (user && !read_only) {
xs *lists = list_maint(user, NULL, 0); /* get list of lists */
if (xs_list_len(lists)) {