diff options
| author | 2024-05-07 23:28:51 -0700 | |
|---|---|---|
| committer | 2024-05-07 23:28:51 -0700 | |
| commit | d27a60dfe7a440ad76540b826d9105a82711f70b (patch) | |
| tree | efd6500da265389345cab3f84636ae36011529ea | |
| parent | Version 2.52 RELEASED. (diff) | |
| download | penes-snac2-d27a60dfe7a440ad76540b826d9105a82711f70b.tar.gz penes-snac2-d27a60dfe7a440ad76540b826d9105a82711f70b.tar.xz penes-snac2-d27a60dfe7a440ad76540b826d9105a82711f70b.zip | |
allow unboosting your own posts
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1265,8 +1265,8 @@ xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const | |||
| 1265 | } | 1265 | } |
| 1266 | 1266 | ||
| 1267 | if (is_msg_public(msg)) { | 1267 | if (is_msg_public(msg)) { |
| 1268 | if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) { | 1268 | if (xs_list_in(boosts, snac->md5) == -1) { |
| 1269 | /* not already boosted or us; add button */ | 1269 | /* not already boosted; add button */ |
| 1270 | xs_html_add(form, | 1270 | xs_html_add(form, |
| 1271 | html_button("boost", L("Boost"), L("Announce this post to your followers"))); | 1271 | html_button("boost", L("Boost"), L("Announce this post to your followers"))); |
| 1272 | } | 1272 | } |