diff options
| author | 2025-12-18 08:54:21 +0100 | |
|---|---|---|
| committer | 2025-12-18 08:54:21 +0100 | |
| commit | 219f3e6808bdcf8a03cce404caa5cb6a008d00c5 (patch) | |
| tree | 85a417c87c274f1d5b853f5c56692a82a7375891 /html.c | |
| parent | Fixed leak in timeline_admire(). (diff) | |
| download | snac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.tar.gz snac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.tar.xz snac2-219f3e6808bdcf8a03cce404caa5cb6a008d00c5.zip | |
Fixed leak in emoji_reacted().
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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 | ||