diff options
author | default <nobody@localhost> | 2023-06-15 04:29:26 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-15 04:29:26 +0200 |
commit | 2bed69d00b76a8b54f027e9edd6df6c968cdf1b9 (patch) | |
tree | 96e393d5f22b7e2949b1477d3c6d5d0f9413c7cc /data.c | |
parent | 297b82c9c627aabd9f17700d2b7958ba728543fb (diff) |
Use the _a.json extension for actor object links into following/.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1174,7 +1174,7 @@ int following_add(snac *snac, const char *actor, const xs_dict *msg) xs *actor_fn = _object_fn(actor); /* increase its reference count */ - fn = xs_replace_i(fn, ".json", ""); + fn = xs_replace_i(fn, ".json", "_a.json"); link(actor_fn, fn); } else @@ -1196,7 +1196,7 @@ int following_del(snac *snac, const char *actor) unlink(fn); /* also delete the reference to the author */ - fn = xs_replace_i(fn, ".json", ""); + fn = xs_replace_i(fn, ".json", "_a.json"); unlink(fn); return 200; @@ -1265,7 +1265,7 @@ xs_list *following_list(snac *snac) list = xs_list_append(list, actor); /* check if there is a link to the actor object */ - xs *v2 = xs_replace(v, ".json", ""); + xs *v2 = xs_replace(v, ".json", "_a.json"); if (mtime(v2) == 0.0) { /* no; add a link to it */ |