summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-08 08:45:35 +0100
committerdefault <nobody@localhost>2022-12-08 08:45:35 +0100
commit5e837aa57b4e411c9350f9e3e93107c7ba34b8aa (patch)
tree47d47521c7027fd584e454c9dd7ce66bf6afada0
parentf62e015dd202e6be8870853ca03cb44d0362ffe6 (diff)
Don't show the 'Boost' button for private messages.
-rw-r--r--html.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/html.c b/html.c
index 4c2a043..88eeae5 100644
--- a/html.c
+++ b/html.c
@@ -429,9 +429,11 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
s = html_button(s, "like", L("Like"));
}
- if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
- /* not already boosted or us; add button */
- s = html_button(s, "boost", L("Boost"));
+ if (is_msg_public(snac, msg)) {
+ if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
+ /* not already boosted or us; add button */
+ s = html_button(s, "boost", L("Boost"));
+ }
}
if (strcmp(actor, snac->actor) != 0) {