summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-03 07:27:26 +0100
committerdefault <nobody@localhost>2022-12-03 07:27:26 +0100
commitaf6d31ff83bfe1eb6f4d37c5623e35f149e9aee5 (patch)
treeccce0075e128768e49832e7f14c80cf4de37a8cc /html.c
parent2614a8b3cbf55ab2a38ae2c81fe0081579495190 (diff)
New function timeline_simple_list().
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/html.c b/html.c
index 65ea5e1..3c5d0bc 100644
--- a/html.c
+++ b/html.c
@@ -549,8 +549,6 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int
}
if (level == 0) {
- char *p;
-
s = xs_str_cat(s, "<div class=\"snac-post\">\n");
if (boosts == NULL)
@@ -558,7 +556,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int
if (xs_list_len(boosts)) {
/* if somebody boosted this, show as origin */
- p = xs_list_get(boosts, 0);
+ char *p = xs_list_get(boosts, -1);
xs *actor_r = NULL;
if (xs_list_in(boosts, snac->md5) != -1) {
@@ -1096,7 +1094,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
if (strcmp(p_path, ".rss") == 0) {
/* public timeline in RSS format */
d_char *rss;
- xs *elems = timeline_list(&snac, "public", 20);
+ xs *elems = timeline_simple_list(&snac, "public", 20);
xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio"));
char *p, *v;