summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-21 08:12:05 +0100
committerdefault <nobody@localhost>2024-02-21 08:12:10 +0100
commitbc3c7dde33cf87f55cdb2465f5f155b48e15e4df (patch)
treee93a25dce99cdaeef86fb08debb76f3e81c6ccb3 /html.c
parentb40e71c11c2451b541bd55238b0566a9ecc7570f (diff)
More local -> read_only argument renamings.
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)
}
-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);