diff options
| -rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -551,14 +551,14 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons | |||
| 551 | 551 | ||
| 552 | /* if this is our post, add the score */ | 552 | /* if this is our post, add the score */ |
| 553 | if (xs_startswith(id, snac->actor)) { | 553 | if (xs_startswith(id, snac->actor)) { |
| 554 | likes = object_likes(id); | 554 | int n_likes = object_likes_len(id); |
| 555 | boosts = object_announces(id); | 555 | int n_boosts = object_announces_len(id); |
| 556 | 556 | ||
| 557 | /* alternate emojis: %d 👍 %d 🔁 */ | 557 | /* alternate emojis: %d 👍 %d 🔁 */ |
| 558 | 558 | ||
| 559 | xs *s1 = xs_fmt( | 559 | xs *s1 = xs_fmt( |
| 560 | "<div class=\"snac-score\">%d ★ %d ↺</div>\n", | 560 | "<div class=\"snac-score\">%d ★ %d ↺</div>\n", |
| 561 | xs_list_len(likes), xs_list_len(boosts)); | 561 | n_likes, n_boosts); |
| 562 | 562 | ||
| 563 | s = xs_str_cat(s, s1); | 563 | s = xs_str_cat(s, s1); |
| 564 | } | 564 | } |