summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-24 09:06:41 +0100
committerdefault <nobody@localhost>2022-11-24 09:06:41 +0100
commit391fc5cd998eb75937de966154a71fdc7f20e843 (patch)
tree8b36b6e3ee8230c344cfb1d28ecebb0f526a4c12 /data.c
parentf2528c6c521cde213e9f7ac3e263b9736d27ef37 (diff)
In object_add(), update the parent's children index even if the parent isn't here.
Diffstat (limited to 'data.c')
-rw-r--r--data.c6
1 files 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