diff options
| author | 2022-11-25 17:07:23 +0100 | |
|---|---|---|
| committer | 2022-11-25 17:07:23 +0100 | |
| commit | 87d3ec2accb94c8a2f912a5ed7f8782f45f2151f (patch) | |
| tree | 1a8031a7db3614e70503b4ccbce0cd1aaf2eb559 /data.c | |
| parent | New function timeline_object_add(). (diff) | |
| download | snac2-87d3ec2accb94c8a2f912a5ed7f8782f45f2151f.tar.gz snac2-87d3ec2accb94c8a2f912a5ed7f8782f45f2151f.tar.xz snac2-87d3ec2accb94c8a2f912a5ed7f8782f45f2151f.zip | |
Renamed indexes.
timeline.idx to private.idx, local.idx to public.idx.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -901,11 +901,11 @@ void timeline_object_add(snac *snac, const char *id, char *msg) | |||
| 901 | { | 901 | { |
| 902 | object_add(id, msg); | 902 | object_add(id, msg); |
| 903 | 903 | ||
| 904 | xs *idx = xs_fmt("%s/timeline.idx", snac->basedir); | 904 | xs *idx = xs_fmt("%s/private.idx", snac->basedir); |
| 905 | index_add(idx, id); | 905 | index_add(idx, id); |
| 906 | 906 | ||
| 907 | if (xs_startswith(id, snac->actor)) { | 907 | if (xs_startswith(id, snac->actor)) { |
| 908 | idx = xs_replace_i(idx, "timeline.", "local."); | 908 | idx = xs_replace_i(idx, "private.", "public."); |
| 909 | index_add(idx, id); | 909 | index_add(idx, id); |
| 910 | } | 910 | } |
| 911 | } | 911 | } |