summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-10 11:26:51 +0100
committerdefault <nobody@localhost>2022-12-10 11:26:51 +0100
commit2fd7e20380c52b78ce7b7207423a5ec8432fab5e (patch)
tree78cbf335e17ac106073bb36e266e90cd7661546a /html.c
parent83a68d635da380329ed5cdd312011701beef6f44 (diff)
Use object_likes_len() and object_announces_len() in the post score.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 88eeae5..ab819ed 100644
--- a/html.c
+++ b/html.c
@@ -551,14 +551,14 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons
/* if this is our post, add the score */
if (xs_startswith(id, snac->actor)) {
- likes = object_likes(id);
- boosts = object_announces(id);
+ int n_likes = object_likes_len(id);
+ int n_boosts = object_announces_len(id);
/* alternate emojis: %d &#128077; %d &#128257; */
xs *s1 = xs_fmt(
"<div class=\"snac-score\">%d &#9733; %d &#8634;</div>\n",
- xs_list_len(likes), xs_list_len(boosts));
+ n_likes, n_boosts);
s = xs_str_cat(s, s1);
}