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)
409 /* update the children index of the parent */ 409 /* update the children index of the parent */
410 xs *pfn = _object_fn(in_reply_to); 410 xs *pfn = _object_fn(in_reply_to);
411 411
412 if (mtime(pfn) > 0.0) { 412 pfn = xs_replace_i(pfn, ".json", "_c.idx");
413 pfn = xs_replace_i(pfn, ".json", "_c.idx"); 413 index_add(pfn, id);
414 index_add(pfn, id);
415 }
416 } 414 }
417 } 415 }
418 else 416 else