diff options
author | default <nobody@localhost> | 2024-02-21 08:12:05 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-02-21 08:12:10 +0100 |
commit | bc3c7dde33cf87f55cdb2465f5f155b48e15e4df (patch) | |
tree | e93a25dce99cdaeef86fb08debb76f3e81c6ccb3 /html.c | |
parent | b40e71c11c2451b541bd55238b0566a9ecc7570f (diff) |
More local -> read_only argument renamings.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1879,7 +1879,7 @@ xs_html *html_footer(void) } -xs_str *html_timeline(snac *user, const xs_list *list, int local, +xs_str *html_timeline(snac *user, const xs_list *list, int read_only, int skip, int show, int show_more, char *tag, char *page) /* returns the HTML for the timeline */ { @@ -1903,7 +1903,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, if (user) { head = html_user_head(user, desc); - body = html_user_body(user, local); + body = html_user_body(user, read_only); } else { head = html_instance_head(); @@ -1914,7 +1914,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, head, body); - if (user && !local) + if (user && !read_only) xs_html_add(body, html_top_controls(user)); @@ -1954,14 +1954,14 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, } } - xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1); + xs_html *entry = html_entry(user, msg, read_only, 0, v, user ? 0 : 1); if (entry != NULL) xs_html_add(posts, entry); } - if (list && user && local) { + if (list && user && read_only) { if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) { xs_html *ul = xs_html_tag("ul", NULL); |