summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-08-29 12:53:49 +0200
committerdefault <nobody@localhost>2024-08-29 12:53:49 +0200
commitbff33fc2eda701ff5d6cd8433c15dfd9aca768f7 (patch)
tree384586da455d5ed9ed1cccad1a20122f81f69d05 /data.c
parentb512678f2db3fd00e0f49ea1b7ce6c099405c050 (diff)
timeline_del() also deletes from the pinned and bookmark caches.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index 453bdd6..bbd0e0c 100644
--- a/data.c
+++ b/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);
}