diff options
| author | 2025-01-27 20:20:40 +0100 | |
|---|---|---|
| committer | 2025-01-27 20:20:40 +0100 | |
| commit | 1766d6bf92eb433841c03ccb096c636a4c5dc968 (patch) | |
| tree | 03a972ca23ad10888f35dc08aeae98baeeab9d76 /data.c | |
| parent | Minor optimization in timeline retrieving. (diff) | |
| download | penes-snac2-1766d6bf92eb433841c03ccb096c636a4c5dc968.tar.gz penes-snac2-1766d6bf92eb433841c03ccb096c636a4c5dc968.tar.xz penes-snac2-1766d6bf92eb433841c03ccb096c636a4c5dc968.zip | |
Added a 'No more unseen posts' mark.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -1528,6 +1528,14 @@ xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show, int | |||
| 1528 | } | 1528 | } |
| 1529 | 1529 | ||
| 1530 | 1530 | ||
| 1531 | void timeline_add_mark(snac *user) | ||
| 1532 | /* adds an "already seen" mark to the private timeline */ | ||
| 1533 | { | ||
| 1534 | xs *fn = xs_fmt("%s/private.idx", user->basedir); | ||
| 1535 | index_add_md5(fn, MD5_ALREADY_SEEN_MARK); | ||
| 1536 | } | ||
| 1537 | |||
| 1538 | |||
| 1531 | xs_str *instance_index_fn(void) | 1539 | xs_str *instance_index_fn(void) |
| 1532 | { | 1540 | { |
| 1533 | return xs_fmt("%s/public.idx", srv_basedir); | 1541 | return xs_fmt("%s/public.idx", srv_basedir); |