summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c
index 3ae9c65..b8b1d65 100644
--- a/html.c
+++ b/html.c
@@ -1879,7 +1879,7 @@ xs_html *html_footer(void)
1879} 1879}
1880 1880
1881 1881
1882xs_str *html_timeline(snac *user, const xs_list *list, int local, 1882xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
1883 int skip, int show, int show_more, char *tag, char *page) 1883 int skip, int show, int show_more, char *tag, char *page)
1884/* returns the HTML for the timeline */ 1884/* returns the HTML for the timeline */
1885{ 1885{
@@ -1903,7 +1903,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
1903 1903
1904 if (user) { 1904 if (user) {
1905 head = html_user_head(user, desc); 1905 head = html_user_head(user, desc);
1906 body = html_user_body(user, local); 1906 body = html_user_body(user, read_only);
1907 } 1907 }
1908 else { 1908 else {
1909 head = html_instance_head(); 1909 head = html_instance_head();
@@ -1914,7 +1914,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
1914 head, 1914 head,
1915 body); 1915 body);
1916 1916
1917 if (user && !local) 1917 if (user && !read_only)
1918 xs_html_add(body, 1918 xs_html_add(body,
1919 html_top_controls(user)); 1919 html_top_controls(user));
1920 1920
@@ -1954,14 +1954,14 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
1954 } 1954 }
1955 } 1955 }
1956 1956
1957 xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1); 1957 xs_html *entry = html_entry(user, msg, read_only, 0, v, user ? 0 : 1);
1958 1958
1959 if (entry != NULL) 1959 if (entry != NULL)
1960 xs_html_add(posts, 1960 xs_html_add(posts,
1961 entry); 1961 entry);
1962 } 1962 }
1963 1963
1964 if (list && user && local) { 1964 if (list && user && read_only) {
1965 if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) { 1965 if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) {
1966 xs_html *ul = xs_html_tag("ul", NULL); 1966 xs_html *ul = xs_html_tag("ul", NULL);
1967 1967