diff options
author | default <nobody@localhost> | 2022-11-24 09:06:41 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-24 09:06:41 +0100 |
commit | 391fc5cd998eb75937de966154a71fdc7f20e843 (patch) | |
tree | 8b36b6e3ee8230c344cfb1d28ecebb0f526a4c12 /data.c | |
parent | f2528c6c521cde213e9f7ac3e263b9736d27ef37 (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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |