commit 391fc5c
default
·
2022-11-24 08:06:41 +0000 UTC
parent f2528c6
In object_add(), update the parent's children index even if the parent isn't here.
1 files changed,
+2,
-4
M
data.c
M
data.c
+2,
-4
1@@ -409,10 +409,8 @@ int object_add(const char *id, d_char *obj)
2 /* update the children index of the parent */
3 xs *pfn = _object_fn(in_reply_to);
4
5- if (mtime(pfn) > 0.0) {
6- pfn = xs_replace_i(pfn, ".json", "_c.idx");
7- index_add(pfn, id);
8- }
9+ pfn = xs_replace_i(pfn, ".json", "_c.idx");
10+ index_add(pfn, id);
11 }
12 }
13 else