summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-08-29 07:45:22 +0200
committerdefault <nobody@localhost>2024-08-29 07:45:22 +0200
commit8ea199a9966fd661762de89fbbe7313de318872f (patch)
tree79dc7cd51de9a72dc4d592e7a18c0881d9008786 /data.c
parent0c3c79f0b9df136c8e676abb8e0a70a829e3b4b5 (diff)
The list of bookmarked posts also work.
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/data.c b/data.c
index bb12aed..8345001 100644
--- a/data.c
+++ b/data.c
@@ -1583,6 +1583,13 @@ int unbookmark(snac *user, const char *id)
}
+xs_list *bookmark_list(snac *user)
+/* return the lists of bookmarked posts */
+{
+ return object_user_cache_list(user, "bookmark", XS_ALL, 1);
+}
+
+
/** pinning **/
int is_pinned(snac *user, const char *id)