diff options
author | default <nobody@localhost> | 2022-11-26 13:34:43 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-26 13:34:43 +0100 |
commit | d03b988c9944c543ab5a8edacd03dfe30c595ba5 (patch) | |
tree | 9ea3de163bfb2b3401965f261ddadda564445c35 /data.c | |
parent | 8e7efad27fc06ba1613d8fb34185ab20204bdb09 (diff) |
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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; } |