mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Pinned posts also appear in the public timeline.
This commit is contained in:
parent
e2789cece5
commit
0dd570dcad
1 changed files with 4 additions and 1 deletions
5
html.c
5
html.c
|
@ -1670,7 +1670,10 @@ int html_get_handler(const xs_dict *req, const char *q_path,
|
||||||
xs *list = timeline_list(&snac, "private", skip, show);
|
xs *list = timeline_list(&snac, "private", skip, show);
|
||||||
xs *next = timeline_list(&snac, "private", skip + show, 1);
|
xs *next = timeline_list(&snac, "private", skip + show, 1);
|
||||||
|
|
||||||
*body = html_timeline(&snac, list, 0, skip, show, xs_list_len(next));
|
xs *pins = pinned_list(&snac);
|
||||||
|
pins = xs_list_cat(pins, list);
|
||||||
|
|
||||||
|
*body = html_timeline(&snac, pins, 0, skip, show, xs_list_len(next));
|
||||||
|
|
||||||
*b_size = strlen(*body);
|
*b_size = strlen(*body);
|
||||||
status = 200;
|
status = 200;
|
||||||
|
|
Loading…
Reference in a new issue