summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/html.c b/html.c
index 9ac991f..f7c2b2f 100644
--- a/html.c
+++ b/html.c
@@ -409,8 +409,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num)
409 s = xs_str_cat(s, s1); 409 s = xs_str_cat(s, s1);
410 } 410 }
411 411
412 if (strcmp(actor, snac->actor) != 0) { 412 {
413 /* controls for other actors than this one */
414 char *l; 413 char *l;
415 414
416 l = xs_dict_get(meta, "liked_by"); 415 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)
420 } 419 }
421 420
422 l = xs_dict_get(meta, "announced_by"); 421 l = xs_dict_get(meta, "announced_by");
423 if (xs_list_in(l, snac->actor) == -1) { 422 if (strcmp(actor, snac->actor) == 0 || xs_list_in(l, snac->actor) == -1) {
424 /* not already boosted; add button */ 423 /* not already boosted or us; add button */
425 s = html_button(s, "boost", L("Boost")); 424 s = html_button(s, "boost", L("Boost"));
426 } 425 }
426 }
427 427
428 if (strcmp(actor, snac->actor) != 0) {
429 /* controls for other actors than this one */
428 if (following_check(snac, actor)) { 430 if (following_check(snac, actor)) {
429 s = html_button(s, "unfollow", L("Unfollow")); 431 s = html_button(s, "unfollow", L("Unfollow"));
430 } 432 }