diff options
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, | |||
| 2925 | } | 2925 | } |
| 2926 | } | 2926 | } |
| 2927 | else | 2927 | else |
| 2928 | if (strcmp(p_path, "list/bookmarks") == 0) { /** list of bookmarked posts **/ | ||
| 2929 | if (!login(&snac, req)) { | ||
| 2930 | *body = xs_dup(uid); | ||
| 2931 | status = HTTP_STATUS_UNAUTHORIZED; | ||
| 2932 | } | ||
| 2933 | else { | ||
| 2934 | xs *list = bookmark_list(&snac); | ||
| 2935 | |||
| 2936 | *body = html_timeline(&snac, list, 0, skip, show, | ||
| 2937 | 0, L("Bookmarked posts"), "", 0); | ||
| 2938 | *b_size = strlen(*body); | ||
| 2939 | status = HTTP_STATUS_OK; | ||
| 2940 | } | ||
| 2941 | } | ||
| 2942 | else | ||
| 2928 | if (xs_startswith(p_path, "list/")) { /** list timelines **/ | 2943 | if (xs_startswith(p_path, "list/")) { /** list timelines **/ |
| 2929 | if (!login(&snac, req)) { | 2944 | if (!login(&snac, req)) { |
| 2930 | *body = xs_dup(uid); | 2945 | *body = xs_dup(uid); |