Renamed indexes.

timeline.idx to private.idx, local.idx to public.idx.
This commit is contained in:
default 2022-11-25 17:07:23 +01:00
parent 4a41f3a1f0
commit 87d3ec2acc

4
data.c
View file

@ -901,11 +901,11 @@ void timeline_object_add(snac *snac, const char *id, char *msg)
{ {
object_add(id, msg); object_add(id, msg);
xs *idx = xs_fmt("%s/timeline.idx", snac->basedir); xs *idx = xs_fmt("%s/private.idx", snac->basedir);
index_add(idx, id); index_add(idx, id);
if (xs_startswith(id, snac->actor)) { if (xs_startswith(id, snac->actor)) {
idx = xs_replace_i(idx, "timeline.", "local."); idx = xs_replace_i(idx, "private.", "public.");
index_add(idx, id); index_add(idx, id);
} }
} }