diff options
| author | 2022-12-03 07:27:26 +0100 | |
|---|---|---|
| committer | 2022-12-03 07:27:26 +0100 | |
| commit | af6d31ff83bfe1eb6f4d37c5623e35f149e9aee5 (patch) | |
| tree | ccce0075e128768e49832e7f14c80cf4de37a8cc /html.c | |
| parent | Show stray parents in the origin. (diff) | |
| download | snac2-af6d31ff83bfe1eb6f4d37c5623e35f149e9aee5.tar.gz snac2-af6d31ff83bfe1eb6f4d37c5623e35f149e9aee5.tar.xz snac2-af6d31ff83bfe1eb6f4d37c5623e35f149e9aee5.zip | |
New function timeline_simple_list().
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -549,8 +549,6 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int | |||
| 549 | } | 549 | } |
| 550 | 550 | ||
| 551 | if (level == 0) { | 551 | if (level == 0) { |
| 552 | char *p; | ||
| 553 | |||
| 554 | s = xs_str_cat(s, "<div class=\"snac-post\">\n"); | 552 | s = xs_str_cat(s, "<div class=\"snac-post\">\n"); |
| 555 | 553 | ||
| 556 | if (boosts == NULL) | 554 | if (boosts == NULL) |
| @@ -558,7 +556,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int | |||
| 558 | 556 | ||
| 559 | if (xs_list_len(boosts)) { | 557 | if (xs_list_len(boosts)) { |
| 560 | /* if somebody boosted this, show as origin */ | 558 | /* if somebody boosted this, show as origin */ |
| 561 | p = xs_list_get(boosts, 0); | 559 | char *p = xs_list_get(boosts, -1); |
| 562 | xs *actor_r = NULL; | 560 | xs *actor_r = NULL; |
| 563 | 561 | ||
| 564 | if (xs_list_in(boosts, snac->md5) != -1) { | 562 | 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 * | |||
| 1096 | if (strcmp(p_path, ".rss") == 0) { | 1094 | if (strcmp(p_path, ".rss") == 0) { |
| 1097 | /* public timeline in RSS format */ | 1095 | /* public timeline in RSS format */ |
| 1098 | d_char *rss; | 1096 | d_char *rss; |
| 1099 | xs *elems = timeline_list(&snac, "public", 20); | 1097 | xs *elems = timeline_simple_list(&snac, "public", 20); |
| 1100 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio")); | 1098 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio")); |
| 1101 | char *p, *v; | 1099 | char *p, *v; |
| 1102 | 1100 | ||