summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-07-06 08:48:06 +0200
committerdefault <nobody@localhost>2023-07-06 08:48:06 +0200
commit0dd570dcad6c6e6eaa1d0fa8ddf624c99308077f (patch)
tree33b314d2c4e76da3c3f46c5d979d44a18d546eee
parente2789cece562d7351d5beb06c059a19d66a6716a (diff)
Pinned posts also appear in the public timeline.
-rw-r--r--html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/html.c b/html.c
index 5118042..13c8e8b 100644
--- a/html.c
+++ b/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 *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);
status = 200;