mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Don't show the 'Boost' button for private messages.
This commit is contained in:
parent
f62e015dd2
commit
5e837aa57b
2
html.c
2
html.c
@ -429,10 +429,12 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
|
|||||||
s = html_button(s, "like", L("Like"));
|
s = html_button(s, "like", L("Like"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_msg_public(snac, msg)) {
|
||||||
if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
|
if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
|
||||||
/* not already boosted or us; add button */
|
/* not already boosted or us; add button */
|
||||||
s = html_button(s, "boost", L("Boost"));
|
s = html_button(s, "boost", L("Boost"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(actor, snac->actor) != 0) {
|
if (strcmp(actor, snac->actor) != 0) {
|
||||||
/* controls for other actors than this one */
|
/* controls for other actors than this one */
|
||||||
|
Loading…
Reference in New Issue
Block a user