commit 352108e

default  ·  2024-09-14 13:23:07 +0000 UTC
parent 46708ef
Set the "Only for mentioned people" checkbox properly.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -1411,7 +1411,7 @@ xs_html *html_entry_controls(snac *snac, const char *actor,
 2                 "", prev_src,
 3                 id, NULL,
 4                 xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"),
 5-                xs_stock(XSTYPE_FALSE), redir,
 6+                xs_stock(is_msg_public(msg) ? XSTYPE_FALSE : XSTYPE_TRUE), redir,
 7                 NULL, 0, att_file, att_alt_text)),
 8             xs_html_tag("p", NULL));
 9     }
10@@ -1430,7 +1430,7 @@ xs_html *html_entry_controls(snac *snac, const char *actor,
11                 "", ct,
12                 NULL, NULL,
13                 xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"),
14-                xs_stock(XSTYPE_FALSE), redir,
15+                xs_stock(is_msg_public(msg) ? XSTYPE_FALSE : XSTYPE_TRUE), redir,
16                 id, 0, "", "")),
17             xs_html_tag("p", NULL));
18     }