aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-12-18 08:54:21 +0100
committergrunfink <grunfink@comam.es>2025-12-18 08:54:21 +0100
commit219f3e6808bdcf8a03cce404caa5cb6a008d00c5 (patch)
tree85a417c87c274f1d5b853f5c56692a82a7375891 /html.c
parentfd45b94c09233221d7b98a7270c768272bd25ac9 (diff)
Fixed leak in emoji_reacted().
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index c317c1a..48273f2 100644
--- a/html.c
+++ b/html.c
@@ -2107,14 +2107,15 @@ xs_html *html_entry_controls(snac *user, const char *actor,
/* the post textarea */
xs *div_id = xs_fmt("%s_reply", md5);
xs *form_id = xs_fmt("%s_reply_form", md5);
+ xs *e_react = emoji_reacted(user, id);
xs_html_add(controls, xs_html_tag("div",
xs_html_tag("p", NULL),
html_emoji(
- user, L("Emoji react"),
+ user, L("Emoji react..."),
div_id, form_id,
":neocat:", id,
- emoji_reacted(user, id))),
+ e_react)),
xs_html_tag("p", NULL));
}