From 1d19464a48a7950421a4aff49034bde6fe4f4fa3 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 28 Sep 2022 07:40:01 +0200 Subject: [PATCH] Delete dangling local timeline entry in timeline_admire(). --- data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data.c b/data.c index 6ea1bae..13cef84 100644 --- a/data.c +++ b/data.c @@ -616,6 +616,8 @@ void timeline_admire(snac *snac, char *id, char *admirer, int like) msg = xs_dict_set(msg, "_snac", meta); + unlink(ofn); + ofn = xs_replace_i(ofn, "/timeline/", "/local/"); unlink(ofn); _timeline_write(snac, id, msg, xs_dict_get(meta, "parent"), admirer);