Просмотр исходного кода

In object_add(), update the parent's children index even if the parent isn't here.

default 3 лет назад
Родитель
Сommit
391fc5cd99
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      data.c

+ 2 - 4
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