diff options
author | default <nobody@localhost> | 2022-11-09 05:51:53 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-09 05:51:53 +0100 |
commit | c03c5488324157e0c1f7d80bdfca3b9b1ae03350 (patch) | |
tree | 4606603c213cc9e804505bba20f721f626e05189 /html.c | |
parent | 8aade19c8c38fc92ee83b4f1d88ec103dd5d2943 (diff) |
You can always Boost your own posts indefinitely.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -409,8 +409,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num) s = xs_str_cat(s, s1); } - if (strcmp(actor, snac->actor) != 0) { - /* controls for other actors than this one */ + { char *l; l = xs_dict_get(meta, "liked_by"); @@ -420,11 +419,14 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num) } l = xs_dict_get(meta, "announced_by"); - if (xs_list_in(l, snac->actor) == -1) { - /* not already boosted; add button */ + if (strcmp(actor, snac->actor) == 0 || xs_list_in(l, snac->actor) == -1) { + /* not already boosted or us; add button */ s = html_button(s, "boost", L("Boost")); } + } + if (strcmp(actor, snac->actor) != 0) { + /* controls for other actors than this one */ if (following_check(snac, actor)) { s = html_button(s, "unfollow", L("Unfollow")); } |