snac2

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

commit 01de131a1717c5bb21c4399636d63a3b2a35b8df
parent c5ae10af862d3c76c79e848fc4dbe69f80cfc214
Author: grunfink <grunfink@noreply.codeberg.org>
Date:   Wed,  8 May 2024 07:48:18 +0000

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

Diffstat:
Mhtml.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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