mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-09-19 18:00:23 +03:00
Don't call object_del() from timeline_del().
Only delete from each user's cache, not from the global database.
This commit is contained in:
parent
8e7efad27f
commit
d03b988c99
7
data.c
7
data.c
@ -762,10 +762,9 @@ int timeline_del(snac *snac, char *id)
|
||||
ret = 200;
|
||||
}
|
||||
|
||||
if (valid_status(object_del(id))) {
|
||||
object_user_cache_del(snac, id, "public");
|
||||
object_user_cache_del(snac, id, "private");
|
||||
}
|
||||
/* delete from the user's caches */
|
||||
object_user_cache_del(snac, id, "public");
|
||||
object_user_cache_del(snac, id, "private");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user