summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2022-09-26 09:08:03 +0200
committerGravatar default2022-09-26 09:08:03 +0200
commit74aef6994a9ae6655706ac65514e117cf8073f72 (patch)
treee460a068e64300421527cb0d095d3bd8f083a44a /data.c
parentAlso store local referrers in the local timeline. (diff)
downloadsnac2-74aef6994a9ae6655706ac65514e117cf8073f72.tar.gz
snac2-74aef6994a9ae6655706ac65514e117cf8073f72.tar.xz
snac2-74aef6994a9ae6655706ac65514e117cf8073f72.zip
Link to local if the child id is from this actor.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
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
469 /* try to do the same with the local */ 469 /* try to do the same with the local */
470 xs *olfn = xs_replace(pfn, "/timeline/", "/local/"); 470 xs *olfn = xs_replace(pfn, "/timeline/", "/local/");
471 471
472 if (unlink(olfn) != -1) { 472 if (unlink(olfn) != -1 || xs_startswith(id, snac->actor)) {
473 xs *nlfn = xs_replace(nfn, "/timeline/", "/local/"); 473 xs *nlfn = xs_replace(nfn, "/timeline/", "/local/");
474 474
475 link(nfn, nlfn); 475 link(nfn, nlfn);