aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-27 20:20:40 +0100
committerdefault <nobody@localhost>2025-01-27 20:20:40 +0100
commit1766d6bf92eb433841c03ccb096c636a4c5dc968 (patch)
tree03a972ca23ad10888f35dc08aeae98baeeab9d76 /data.c
parent82bcc4b465f73a5d1f2eebcf3813452bc1c37fbd (diff)
Added a 'No more unseen posts' mark.
Diffstat (limited to 'data.c')
-rw-r--r--data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/data.c b/data.c
index 550f7cf..480a35b 100644
--- a/data.c
+++ b/data.c
@@ -1528,6 +1528,14 @@ xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show, int
}
+void timeline_add_mark(snac *user)
+/* adds an "already seen" mark to the private timeline */
+{
+ xs *fn = xs_fmt("%s/private.idx", user->basedir);
+ index_add_md5(fn, MD5_ALREADY_SEEN_MARK);
+}
+
+
xs_str *instance_index_fn(void)
{
return xs_fmt("%s/public.idx", srv_basedir);