mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More local -> read_only argument renamings.
This commit is contained in:
parent
b40e71c11c
commit
bc3c7dde33
2 changed files with 6 additions and 6 deletions
10
html.c
10
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)
|
int skip, int show, int show_more, char *tag, char *page)
|
||||||
/* returns the HTML for the timeline */
|
/* returns the HTML for the timeline */
|
||||||
{
|
{
|
||||||
|
@ -1903,7 +1903,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
head = html_user_head(user, desc);
|
head = html_user_head(user, desc);
|
||||||
body = html_user_body(user, local);
|
body = html_user_body(user, read_only);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
head = html_instance_head();
|
head = html_instance_head();
|
||||||
|
@ -1914,7 +1914,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
|
||||||
head,
|
head,
|
||||||
body);
|
body);
|
||||||
|
|
||||||
if (user && !local)
|
if (user && !read_only)
|
||||||
xs_html_add(body,
|
xs_html_add(body,
|
||||||
html_top_controls(user));
|
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)
|
if (entry != NULL)
|
||||||
xs_html_add(posts,
|
xs_html_add(posts,
|
||||||
entry);
|
entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list && user && local) {
|
if (list && user && read_only) {
|
||||||
if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) {
|
if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) {
|
||||||
xs_html *ul = xs_html_tag("ul", NULL);
|
xs_html *ul = xs_html_tag("ul", NULL);
|
||||||
|
|
||||||
|
|
2
snac.h
2
snac.h
|
@ -296,7 +296,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach);
|
||||||
xs_str *sanitize(const char *content);
|
xs_str *sanitize(const char *content);
|
||||||
xs_str *encode_html(const char *str);
|
xs_str *encode_html(const char *str);
|
||||||
|
|
||||||
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);
|
int skip, int show, int show_more, char *tag, char *page);
|
||||||
|
|
||||||
int html_get_handler(const xs_dict *req, const char *q_path,
|
int html_get_handler(const xs_dict *req, const char *q_path,
|
||||||
|
|
Loading…
Reference in a new issue