diff options
| author | 2023-07-05 13:51:20 +0200 | |
|---|---|---|
| committer | 2023-07-05 13:51:20 +0200 | |
| commit | 57ba1d575fdd92adc61dc0498ba3bc271cd7aa6e (patch) | |
| tree | a62e8ca8c5851f69fb70e9b6f21e7409e1cc973a | |
| parent | Updated documentation. (diff) | |
| download | snac2-57ba1d575fdd92adc61dc0498ba3bc271cd7aa6e.tar.gz snac2-57ba1d575fdd92adc61dc0498ba3bc271cd7aa6e.tar.xz snac2-57ba1d575fdd92adc61dc0498ba3bc271cd7aa6e.zip | |
Pinned posts appear at the top of the public timeline.
| -rw-r--r-- | html.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -1630,7 +1630,10 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 1630 | xs *list = timeline_list(&snac, "public", skip, show); | 1630 | xs *list = timeline_list(&snac, "public", skip, show); |
| 1631 | xs *next = timeline_list(&snac, "public", skip + show, 1); | 1631 | xs *next = timeline_list(&snac, "public", skip + show, 1); |
| 1632 | 1632 | ||
| 1633 | *body = html_timeline(&snac, list, 1, skip, show, xs_list_len(next)); | 1633 | xs *pins = pinned_list(&snac); |
| 1634 | pins = xs_list_cat(pins, list); | ||
| 1635 | |||
| 1636 | *body = html_timeline(&snac, pins, 1, skip, show, xs_list_len(next)); | ||
| 1634 | 1637 | ||
| 1635 | *b_size = strlen(*body); | 1638 | *b_size = strlen(*body); |
| 1636 | status = 200; | 1639 | status = 200; |