mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Don't show the instance announcement in public pages.
This commit is contained in:
parent
534cf2cdc1
commit
9be801630a
2
html.c
2
html.c
@ -788,6 +788,7 @@ static xs_html *html_user_body(snac *user, int read_only)
|
||||
|
||||
/** instance announcement **/
|
||||
|
||||
if (!read_only) {
|
||||
double la = 0.0;
|
||||
xs *user_la = xs_dup(xs_dict_get(user->config, "last_announcement"));
|
||||
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_text("Dismiss"))));
|
||||
}
|
||||
}
|
||||
|
||||
if (read_only) {
|
||||
xs *es1 = encode_html(xs_dict_get(user->config, "bio"));
|
||||
|
Loading…
Reference in New Issue
Block a user