Don't show the instance announcement in public pages.

This commit is contained in:
default 2024-06-18 06:07:58 +02:00
parent 534cf2cdc1
commit 9be801630a

2
html.c
View file

@ -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"));