commit 1d19464a48a7950421a4aff49034bde6fe4f4fa3
parent 045498652fca392e4a1d6eff6fef4a2b577cb2d1
Author: default <nobody@localhost>
Date: Wed, 28 Sep 2022 07:40:01 +0200
Delete dangling local timeline entry in timeline_admire().
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/data.c b/data.c
@@ -617,6 +617,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);