diff options
| author | 2022-12-08 08:45:35 +0100 | |
|---|---|---|
| committer | 2022-12-08 08:45:35 +0100 | |
| commit | 5e837aa57b4e411c9350f9e3e93107c7ba34b8aa (patch) | |
| tree | 47d47521c7027fd584e454c9dd7ce66bf6afada0 /html.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-5e837aa57b4e411c9350f9e3e93107c7ba34b8aa.tar.gz snac2-5e837aa57b4e411c9350f9e3e93107c7ba34b8aa.tar.xz snac2-5e837aa57b4e411c9350f9e3e93107c7ba34b8aa.zip | |
Don't show the 'Boost' button for private messages.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -429,9 +429,11 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5) | |||
| 429 | s = html_button(s, "like", L("Like")); | 429 | s = html_button(s, "like", L("Like")); |
| 430 | } | 430 | } |
| 431 | 431 | ||
| 432 | if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) { | 432 | if (is_msg_public(snac, msg)) { |
| 433 | /* not already boosted or us; add button */ | 433 | if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) { |
| 434 | s = html_button(s, "boost", L("Boost")); | 434 | /* not already boosted or us; add button */ |
| 435 | s = html_button(s, "boost", L("Boost")); | ||
| 436 | } | ||
| 435 | } | 437 | } |
| 436 | 438 | ||
| 437 | if (strcmp(actor, snac->actor) != 0) { | 439 | if (strcmp(actor, snac->actor) != 0) { |