diff options
| author | 2023-07-06 08:48:06 +0200 | |
|---|---|---|
| committer | 2023-07-06 08:48:06 +0200 | |
| commit | 0dd570dcad6c6e6eaa1d0fa8ddf624c99308077f (patch) | |
| tree | 33b314d2c4e76da3c3f46c5d979d44a18d546eee | |
| parent | index_list() and index_list_desc() always return a list, even if empty. (diff) | |
| download | snac2-0dd570dcad6c6e6eaa1d0fa8ddf624c99308077f.tar.gz snac2-0dd570dcad6c6e6eaa1d0fa8ddf624c99308077f.tar.xz snac2-0dd570dcad6c6e6eaa1d0fa8ddf624c99308077f.zip | |
Pinned posts also appear in the public timeline.
| -rw-r--r-- | html.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -1670,7 +1670,10 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 1670 | xs *list = timeline_list(&snac, "private", skip, show); | 1670 | xs *list = timeline_list(&snac, "private", skip, show); |
| 1671 | xs *next = timeline_list(&snac, "private", skip + show, 1); | 1671 | xs *next = timeline_list(&snac, "private", skip + show, 1); |
| 1672 | 1672 | ||
| 1673 | *body = html_timeline(&snac, list, 0, skip, show, xs_list_len(next)); | 1673 | xs *pins = pinned_list(&snac); |
| 1674 | pins = xs_list_cat(pins, list); | ||
| 1675 | |||
| 1676 | *body = html_timeline(&snac, pins, 0, skip, show, xs_list_len(next)); | ||
| 1674 | 1677 | ||
| 1675 | *b_size = strlen(*body); | 1678 | *b_size = strlen(*body); |
| 1676 | status = 200; | 1679 | status = 200; |