commit 5e837aa
default
·
2022-12-08 07:45:35 +0000 UTC
parent f62e015
Don't show the 'Boost' button for private messages.
1 files changed,
+5,
-3
M
html.c
M
html.c
+5,
-3
1@@ -429,9 +429,11 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
2 s = html_button(s, "like", L("Like"));
3 }
4
5- if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
6- /* not already boosted or us; add button */
7- s = html_button(s, "boost", L("Boost"));
8+ if (is_msg_public(snac, msg)) {
9+ if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
10+ /* not already boosted or us; add button */
11+ s = html_button(s, "boost", L("Boost"));
12+ }
13 }
14
15 if (strcmp(actor, snac->actor) != 0) {