Преглед на файлове

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

default преди 3 години
родител
ревизия
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