Merge pull request 'allow unboosting your own posts' (#165) from khm/snac2:unboost-self into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/165
This commit is contained in:
grunfink 2024-05-08 07:48:18 +00:00
commit 01de131a17

4
html.c
View file

@ -1265,8 +1265,8 @@ xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const
} }
if (is_msg_public(msg)) { if (is_msg_public(msg)) {
if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) { if (xs_list_in(boosts, snac->md5) == -1) {
/* not already boosted or us; add button */ /* not already boosted; add button */
xs_html_add(form, xs_html_add(form,
html_button("boost", L("Boost"), L("Announce this post to your followers"))); html_button("boost", L("Boost"), L("Announce this post to your followers")));
} }