summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2023-06-28 20:39:16 +0200
committerGravatar default2023-06-28 20:39:16 +0200
commit394240b9ba6393794cffd7affa3a5cc6075774aa (patch)
tree94c2d90692a4e6dd92004cb6490afdb5397744ae /data.c
parentIn mastoapi, notes can be pinned / unpinned. (diff)
downloadsnac2-394240b9ba6393794cffd7affa3a5cc6075774aa.tar.gz
snac2-394240b9ba6393794cffd7affa3a5cc6075774aa.tar.xz
snac2-394240b9ba6393794cffd7affa3a5cc6075774aa.zip
Also purge pinned.idx.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 481ccbb..6436862 100644
--- a/data.c
+++ b/data.c
@@ -2326,7 +2326,7 @@ void purge_user(snac *snac)
2326 2326
2327 _purge_user_subdir(snac, "public", pub_days); 2327 _purge_user_subdir(snac, "public", pub_days);
2328 2328
2329 const char *idxs[] = { "followers.idx", "private.idx", "public.idx", NULL }; 2329 const char *idxs[] = { "followers.idx", "private.idx", "public.idx", "pinned.idx", NULL };
2330 2330
2331 for (n = 0; idxs[n]; n++) { 2331 for (n = 0; idxs[n]; n++) {
2332 xs *idx = xs_fmt("%s/%s", snac->basedir, idxs[n]); 2332 xs *idx = xs_fmt("%s/%s", snac->basedir, idxs[n]);