snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a727bb29f6a4b1e66a4ad0664e4557f69d1e2ac4
parent bd4511e7c50cc92739d2762cd9d69ebc8d0b8e94
Author: default <nobody@localhost>
Date:   Fri, 24 May 2024 12:36:08 +0200

Don't show list links in read only timelines.

Diffstat:
Mhtml.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) {