diff options
author | default <nobody@localhost> | 2024-08-29 07:45:22 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-08-29 07:45:22 +0200 |
commit | 8ea199a9966fd661762de89fbbe7313de318872f (patch) | |
tree | 79dc7cd51de9a72dc4d592e7a18c0881d9008786 /html.c | |
parent | 0c3c79f0b9df136c8e676abb8e0a70a829e3b4b5 (diff) |
The list of bookmarked posts also work.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -2925,6 +2925,21 @@ int html_get_handler(const xs_dict *req, const char *q_path, } } else + if (strcmp(p_path, "list/bookmarks") == 0) { /** list of bookmarked posts **/ + if (!login(&snac, req)) { + *body = xs_dup(uid); + status = HTTP_STATUS_UNAUTHORIZED; + } + else { + xs *list = bookmark_list(&snac); + + *body = html_timeline(&snac, list, 0, skip, show, + 0, L("Bookmarked posts"), "", 0); + *b_size = strlen(*body); + status = HTTP_STATUS_OK; + } + } + else if (xs_startswith(p_path, "list/")) { /** list timelines **/ if (!login(&snac, req)) { *body = xs_dup(uid); |