From 74aef6994a9ae6655706ac65514e117cf8073f72 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 26 Sep 2022 09:08:03 +0200 Subject: Link to local if the child id is from this actor. --- data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data.c') diff --git a/data.c b/data.c index 2d8db33..3df09dd 100644 --- a/data.c +++ b/data.c @@ -469,7 +469,7 @@ void _timeline_write(snac *snac, char *id, char *msg, char *parent, char *referr /* try to do the same with the local */ xs *olfn = xs_replace(pfn, "/timeline/", "/local/"); - if (unlink(olfn) != -1) { + if (unlink(olfn) != -1 || xs_startswith(id, snac->actor)) { xs *nlfn = xs_replace(nfn, "/timeline/", "/local/"); link(nfn, nlfn); -- cgit v1.2.3