summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-05-08 09:48:57 +0200
committerGravatar default2024-05-08 09:48:57 +0200
commit5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6 (patch)
tree05817a09e790d53f721ac25d7b7b432d1852dee1
parentMore HTML simplification. (diff)
parentMerge pull request 'allow unboosting your own posts' (#165) from khm/snac2:un... (diff)
downloadpenes-snac2-5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6.tar.gz
penes-snac2-5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6.tar.xz
penes-snac2-5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6.zip
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 27fc713..42996e6 100644
--- a/html.c
+++ b/html.c
@@ -1255,8 +1255,8 @@ xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const
1255 } 1255 }
1256 1256
1257 if (is_msg_public(msg)) { 1257 if (is_msg_public(msg)) {
1258 if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) { 1258 if (xs_list_in(boosts, snac->md5) == -1) {
1259 /* not already boosted or us; add button */ 1259 /* not already boosted; add button */
1260 xs_html_add(form, 1260 xs_html_add(form,
1261 html_button("boost", L("Boost"), L("Announce this post to your followers"))); 1261 html_button("boost", L("Boost"), L("Announce this post to your followers")));
1262 } 1262 }