diff options
| author | default <nobody@localhost> | 2024-09-14 15:23:07 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-09-14 15:23:07 +0200 |
| commit | 352108e61f7411a9481dfb43198f6950ba5574a3 (patch) | |
| tree | e1325bfd81469eeb3c518f5c1e088c8a98a74c5d /html.c | |
| parent | 46708ef309ba6197665651c2e3ec9a53e261908c (diff) | |
Set the "Only for mentioned people" checkbox properly.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1411,7 +1411,7 @@ xs_html *html_entry_controls(snac *snac, const char *actor, "", prev_src, id, NULL, xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"), - xs_stock(XSTYPE_FALSE), redir, + xs_stock(is_msg_public(msg) ? XSTYPE_FALSE : XSTYPE_TRUE), redir, NULL, 0, att_file, att_alt_text)), xs_html_tag("p", NULL)); } @@ -1430,7 +1430,7 @@ xs_html *html_entry_controls(snac *snac, const char *actor, "", ct, NULL, NULL, xs_dict_get(msg, "sensitive"), xs_dict_get(msg, "summary"), - xs_stock(XSTYPE_FALSE), redir, + xs_stock(is_msg_public(msg) ? XSTYPE_FALSE : XSTYPE_TRUE), redir, id, 0, "", "")), xs_html_tag("p", NULL)); } |