summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2022-11-26 13:34:43 +0100
committerGravatar default2022-11-26 13:34:43 +0100
commitd03b988c9944c543ab5a8edacd03dfe30c595ba5 (patch)
tree9ea3de163bfb2b3401965f261ddadda564445c35 /data.c
parentOnly call the expensive index_del() if unlink() did not fail. (diff)
downloadsnac2-d03b988c9944c543ab5a8edacd03dfe30c595ba5.tar.gz
snac2-d03b988c9944c543ab5a8edacd03dfe30c595ba5.tar.xz
snac2-d03b988c9944c543ab5a8edacd03dfe30c595ba5.zip
Don't call object_del() from timeline_del().
Only delete from each user's cache, not from the global database.
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/data.c b/data.c
index 98e5c65..5f5e8c1 100644
--- a/data.c
+++ b/data.c
@@ -762,10 +762,9 @@ int timeline_del(snac *snac, char *id)
762 ret = 200; 762 ret = 200;
763 } 763 }
764 764
765 if (valid_status(object_del(id))) { 765 /* delete from the user's caches */
766 object_user_cache_del(snac, id, "public"); 766 object_user_cache_del(snac, id, "public");
767 object_user_cache_del(snac, id, "private"); 767 object_user_cache_del(snac, id, "private");
768 }
769 768
770 return ret; 769 return ret;
771} 770}