mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
In object_add(), update the parent's children index even if the parent isn't here.
This commit is contained in:
parent
f2528c6c52
commit
391fc5cd99
6
data.c
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user