summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-28 07:40:01 +0200
committerdefault <nobody@localhost>2022-09-28 07:40:01 +0200
commit1d19464a48a7950421a4aff49034bde6fe4f4fa3 (patch)
treec9c76f2fef336feda5f903e36c607061934bdc85 /data.c
parent045498652fca392e4a1d6eff6fef4a2b577cb2d1 (diff)
Delete dangling local timeline entry in timeline_admire().
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 6ea1bae..13cef84 100644
--- 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);