Delete dangling local timeline entry in timeline_admire().

This commit is contained in:
default 2022-09-28 07:40:01 +02:00
parent 045498652f
commit 1d19464a48

2
data.c
View file

@ -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);