aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-05-22 08:56:44 +0200
committergrunfink <grunfink@comam.es>2026-05-22 08:56:44 +0200
commite5b62f675dd49f1e7a9bc797f48aaf503c6537e8 (patch)
tree3945acdfa6319403fcfdc67b6dce5122c024e437
parent871ea6a6cd636235553e53c9c3990bd235df7a11 (diff)
Delete from the admire cache also when emojiunreacting.
-rw-r--r--html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/html.c b/html.c
index f922ae2..ecd7fd7 100644
--- a/html.c
+++ b/html.c
@@ -5661,6 +5661,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
const char *eid = xs_dict_get(p_vars, "eid");
if (eid != NULL) {
+ object_user_cache_del(&snac, id, "admire");
xs *n_msg = msg_emoji_unreact(&snac, id, eid);
if (n_msg != NULL)
@@ -5675,8 +5676,10 @@ int html_post_handler(const xs_dict *req, const char *q_path,
xs *ret = msg_emoji_init(&snac, id, eid);
/* fails if either invalid or already reacted */
- if (!ret)
+ if (!ret) {
+ object_user_cache_del(&snac, id, "admire");
ret = msg_emoji_unreact(&snac, id, eid);
+ }
if (!ret)
status = HTTP_STATUS_NOT_FOUND;
}