diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -1855,6 +1855,15 @@ xs_val *list_content(snac *user, const char *list, const char *actor_md5, int op | |||
| 1855 | case 2: /** delete actor from list **/ | 1855 | case 2: /** delete actor from list **/ |
| 1856 | if (actor_md5 != NULL) | 1856 | if (actor_md5 != NULL) |
| 1857 | index_del_md5(fn, actor_md5); | 1857 | index_del_md5(fn, actor_md5); |
| 1858 | |||
| 1859 | break; | ||
| 1860 | |||
| 1861 | case 3: /** list timeline **/ | ||
| 1862 | fn = xs_replace_i(fn, ".lst", ".idx"); | ||
| 1863 | |||
| 1864 | l = index_list_desc(fn, 0, 2048); | ||
| 1865 | |||
| 1866 | break; | ||
| 1858 | } | 1867 | } |
| 1859 | 1868 | ||
| 1860 | return l; | 1869 | return l; |
| @@ -1880,7 +1889,9 @@ void list_distribute(snac *user, const xs_dict *post) | |||
| 1880 | if (index_in_md5(v, a_md5)) { | 1889 | if (index_in_md5(v, a_md5)) { |
| 1881 | /* it is; add post md5 to its timeline */ | 1890 | /* it is; add post md5 to its timeline */ |
| 1882 | xs *idx = xs_replace(v, ".lst", ".idx"); | 1891 | xs *idx = xs_replace(v, ".lst", ".idx"); |
| 1883 | index_add(idx, i_md5); | 1892 | index_add_md5(idx, i_md5); |
| 1893 | |||
| 1894 | snac_debug(user, 1, xs_fmt("listed post %s in %s", id, idx)); | ||
| 1884 | } | 1895 | } |
| 1885 | } | 1896 | } |
| 1886 | } | 1897 | } |