mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Started maintaining timeline.idx and local.idx.
This commit is contained in:
parent
9df1cb129e
commit
4bbebe8e4e
1 changed files with 9 additions and 0 deletions
9
data.c
9
data.c
|
@ -924,7 +924,16 @@ int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer
|
|||
|
||||
if ((ret = _timeline_write(snac, id, msg, parent, referrer))) {
|
||||
snac_debug(snac, 1, xs_fmt("timeline_add %s", id));
|
||||
|
||||
object_add(id, o_msg);
|
||||
|
||||
xs *idx = xs_fmt("%s/timeline.idx", snac->basedir);
|
||||
index_add(idx, id);
|
||||
|
||||
if (xs_startswith(id, snac->actor)) {
|
||||
idx = xs_replace_i(idx, "timeline.", "local.");
|
||||
index_add(idx, id);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue