summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-12-18 08:54:21 +0100
committerGravatar grunfink2025-12-18 08:54:21 +0100
commit219f3e6808bdcf8a03cce404caa5cb6a008d00c5 (patch)
tree85a417c87c274f1d5b853f5c56692a82a7375891 /html.c
parentFixed leak in timeline_admire(). (diff)
downloadsnac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.tar.gz
snac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.tar.xz
snac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.zip
Fixed leak in emoji_reacted().
Diffstat (limited to '')
-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,
2107 /* the post textarea */ 2107 /* the post textarea */
2108 xs *div_id = xs_fmt("%s_reply", md5); 2108 xs *div_id = xs_fmt("%s_reply", md5);
2109 xs *form_id = xs_fmt("%s_reply_form", md5); 2109 xs *form_id = xs_fmt("%s_reply_form", md5);
2110 xs *e_react = emoji_reacted(user, id);
2110 2111
2111 xs_html_add(controls, xs_html_tag("div", 2112 xs_html_add(controls, xs_html_tag("div",
2112 xs_html_tag("p", NULL), 2113 xs_html_tag("p", NULL),
2113 html_emoji( 2114 html_emoji(
2114 user, L("Emoji react"), 2115 user, L("Emoji react..."),
2115 div_id, form_id, 2116 div_id, form_id,
2116 ":neocat:", id, 2117 ":neocat:", id,
2117 emoji_reacted(user, id))), 2118 e_react)),
2118 xs_html_tag("p", NULL)); 2119 xs_html_tag("p", NULL));
2119 } 2120 }
2120 2121