snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 5e837aa57b4e411c9350f9e3e93107c7ba34b8aa
parent f62e015dd202e6be8870853ca03cb44d0362ffe6
Author: default <nobody@localhost>
Date:   Thu,  8 Dec 2022 08:45:35 +0100

Don't show the 'Boost' button for private messages.

Diffstat:
Mhtml.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 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) {