snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 391fc5cd998eb75937de966154a71fdc7f20e843
parent f2528c6c521cde213e9f7ac3e263b9736d27ef37
Author: default <nobody@localhost>
Date:   Thu, 24 Nov 2022 09:06:41 +0100

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

Diffstat:
Mdata.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/data.c b/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