aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-05-22 08:30:06 +0200
committergrunfink <grunfink@comam.es>2026-05-22 08:30:06 +0200
commit871ea6a6cd636235553e53c9c3990bd235df7a11 (patch)
tree35ccebef8001526594139ddc8e59b1526127011c
parenta4381e41db43e2577aa5525586ab4ee680f3fec0 (diff)
mastoapi: delete from admire/ cache in unfavourite and unreact.
-rw-r--r--mastoapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 109142c..1ddcdc4 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -3435,6 +3435,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
xs *n_msg = msg_repulsion(&snac, id, "Like");
if (n_msg != NULL) {
+ object_user_cache_del(&snac, id, "admire");
enqueue_message(&snac, n_msg);
out = mastoapi_status(&snac, msg);
@@ -3456,6 +3457,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
xs *n_msg = msg_emoji_unreact(&snac, id, content);
if (n_msg != NULL) {
+ object_user_cache_del(&snac, id, "admire");
enqueue_message(&snac, n_msg);
out = mastoapi_status(&snac, msg);