commit bff33fc
default
·
2024-08-29 10:53:49 +0000 UTC
parent b512678
timeline_del() also deletes from the pinned and bookmark caches.
1 files changed,
+3,
-0
M
data.c
M
data.c
+3,
-0
1@@ -1232,6 +1232,9 @@ int timeline_del(snac *snac, const char *id)
2 object_user_cache_del(snac, id, "public");
3 object_user_cache_del(snac, id, "private");
4
5+ unpin(snac, id);
6+ unbookmark(snac, id);
7+
8 /* try to delete the object if it's not used elsewhere */
9 return object_del_if_unref(id);
10 }