snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bff33fc2eda701ff5d6cd8433c15dfd9aca768f7
parent b512678f2db3fd00e0f49ea1b7ce6c099405c050
Author: default <nobody@localhost>
Date:   Thu, 29 Aug 2024 12:53:49 +0200

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

Diffstat:
Mdata.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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); }