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

This commit is contained in:
default 2024-08-29 12:53:49 +02:00
parent b512678f2d
commit bff33fc2ed

3
data.c
View File

@ -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, "public");
object_user_cache_del(snac, id, "private"); object_user_cache_del(snac, id, "private");
unpin(snac, id);
unbookmark(snac, id);
/* try to delete the object if it's not used elsewhere */ /* try to delete the object if it's not used elsewhere */
return object_del_if_unref(id); return object_del_if_unref(id);
} }