diff options
| author | 2023-07-04 14:34:32 +0200 | |
|---|---|---|
| committer | 2023-07-04 14:34:32 +0200 | |
| commit | bf08fba799d1ee693bf6db09be1a0b1e10f5496c (patch) | |
| tree | 45913b34132cbccf0f1c91868c9f4fdce1b92684 | |
| parent | More unfollow notification tweaks. (diff) | |
| download | snac2-bf08fba799d1ee693bf6db09be1a0b1e10f5496c.tar.gz snac2-bf08fba799d1ee693bf6db09be1a0b1e10f5496c.tar.xz snac2-bf08fba799d1ee693bf6db09be1a0b1e10f5496c.zip | |
Call index_del() from _object_user_cache().
| -rw-r--r-- | data.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -862,6 +862,7 @@ int _object_user_cache(snac *snac, const char *id, const char *cachedir, int del | |||
| 862 | 862 | ||
| 863 | if (del) { | 863 | if (del) { |
| 864 | ret = unlink(cfn); | 864 | ret = unlink(cfn); |
| 865 | index_del(idx, id); | ||
| 865 | } | 866 | } |
| 866 | else { | 867 | else { |
| 867 | if ((ret = link(ofn, cfn)) != -1) | 868 | if ((ret = link(ofn, cfn)) != -1) |