From 391fc5cd998eb75937de966154a71fdc7f20e843 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 24 Nov 2022 09:06:41 +0100 Subject: [PATCH] In object_add(), update the parent's children index even if the parent isn't here. --- data.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data.c b/data.c index 19b8a0a..259febf 100644 --- a/data.c +++ b/data.c @@ -409,10 +409,8 @@ int object_add(const char *id, d_char *obj) /* update the children index of the parent */ xs *pfn = _object_fn(in_reply_to); - if (mtime(pfn) > 0.0) { - pfn = xs_replace_i(pfn, ".json", "_c.idx"); - index_add(pfn, id); - } + pfn = xs_replace_i(pfn, ".json", "_c.idx"); + index_add(pfn, id); } } else