commit 01de131

grunfink  ·  2024-05-08 07:48:18 +0000 UTC
parents c5ae10a, d27a60d
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
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -1265,8 +1265,8 @@ xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const
 2     }
 3 
 4     if (is_msg_public(msg)) {
 5-        if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
 6-            /* not already boosted or us; add button */
 7+        if (xs_list_in(boosts, snac->md5) == -1) {
 8+            /* not already boosted; add button */
 9             xs_html_add(form,
10                 html_button("boost", L("Boost"), L("Announce this post to your followers")));
11         }