aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-05-22 08:01:16 +0200
committergrunfink <grunfink@comam.es>2026-05-22 08:01:16 +0200
commita4381e41db43e2577aa5525586ab4ee680f3fec0 (patch)
tree04093b8120e9f934ffe27b57819801a813ad02fa /html.c
parent5c5736001d6fca95271801008aad6eedeb7deda5 (diff)
Delete from the admire index when unliking and unboosting.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/html.c b/html.c
index 29dd8e8..f922ae2 100644
--- a/html.c
+++ b/html.c
@@ -5703,6 +5703,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
xs *msg = msg_repulsion(&snac, id, "Like");
if (msg != NULL) {
+ object_user_cache_del(&snac, id, "admire");
enqueue_message(&snac, msg);
}
}
@@ -5711,6 +5712,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
xs *msg = msg_repulsion(&snac, id, "Announce");
if (msg != NULL) {
+ object_user_cache_del(&snac, id, "admire");
enqueue_message(&snac, msg);
}
}