Răsfoiți Sursa

Delete from the admire index when unliking and unboosting.

grunfink 2 luni în urmă
părinte
comite
a4381e41db
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      html.c

+ 2 - 0
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);
             }
         }