mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-21 21:05:05 +00:00
timeline_del() also deletes from the pinned and bookmark caches.
This commit is contained in:
parent
b512678f2d
commit
bff33fc2ed
1 changed files with 3 additions and 0 deletions
3
data.c
3
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue