diff options
| -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) | |||
| 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 |