summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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