mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Don't show the instance announcement in public pages.
This commit is contained in:
parent
534cf2cdc1
commit
9be801630a
1 changed files with 16 additions and 14 deletions
2
html.c
2
html.c
|
@ -788,6 +788,7 @@ static xs_html *html_user_body(snac *user, int read_only)
|
||||||
|
|
||||||
/** instance announcement **/
|
/** instance announcement **/
|
||||||
|
|
||||||
|
if (!read_only) {
|
||||||
double la = 0.0;
|
double la = 0.0;
|
||||||
xs *user_la = xs_dup(xs_dict_get(user->config, "last_announcement"));
|
xs *user_la = xs_dup(xs_dict_get(user->config, "last_announcement"));
|
||||||
if (user_la != NULL)
|
if (user_la != NULL)
|
||||||
|
@ -805,6 +806,7 @@ static xs_html *html_user_body(snac *user, int read_only)
|
||||||
xs_html_attr("href", s),
|
xs_html_attr("href", s),
|
||||||
xs_html_text("Dismiss"))));
|
xs_html_text("Dismiss"))));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (read_only) {
|
if (read_only) {
|
||||||
xs *es1 = encode_html(xs_dict_get(user->config, "bio"));
|
xs *es1 = encode_html(xs_dict_get(user->config, "bio"));
|
||||||
|
|
Loading…
Reference in a new issue