Sfoglia il codice sorgente

timeline_del() also deletes from the pinned and bookmark caches.

default 7 mesi fa
parent
commit
bff33fc2ed
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      data.c

+ 3 - 0
data.c

@@ -1232,6 +1232,9 @@ int timeline_del(snac *snac, const char *id)
     object_user_cache_del(snac, id, "public");
     object_user_cache_del(snac, id, "private");
 
+    unpin(snac, id);
+    unbookmark(snac, id);
+
     /* try to delete the object if it's not used elsewhere */
     return object_del_if_unref(id);
 }