diff options
| author | 2023-02-05 17:39:40 +0100 | |
|---|---|---|
| committer | 2023-02-05 17:39:40 +0100 | |
| commit | bad9f3a8c638f434bd04243791aecce950a104ba (patch) | |
| tree | 2f213eb19182f508cb407278fcdc71942f35187d /html.c | |
| parent | New function timeline_get(). (diff) | |
| download | snac2-bad9f3a8c638f434bd04243791aecce950a104ba.tar.gz snac2-bad9f3a8c638f434bd04243791aecce950a104ba.tar.xz snac2-bad9f3a8c638f434bd04243791aecce950a104ba.zip | |
Renamed timeline_get() to timeline_get_by_md5(), as that is what id does.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -830,7 +830,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons | |||
| 830 | p = children; | 830 | p = children; |
| 831 | while (xs_list_iter(&p, &cmd5)) { | 831 | while (xs_list_iter(&p, &cmd5)) { |
| 832 | xs *chd = NULL; | 832 | xs *chd = NULL; |
| 833 | object_get_by_md5(cmd5, &chd, NULL); | 833 | timeline_get_by_md5(snac, cmd5, &chd); |
| 834 | 834 | ||
| 835 | if (older_open && left <= 3) { | 835 | if (older_open && left <= 3) { |
| 836 | ss = xs_str_cat(ss, "</details>\n"); | 836 | ss = xs_str_cat(ss, "</details>\n"); |
| @@ -895,7 +895,7 @@ d_char *html_timeline(snac *snac, char *list, int local, int skip, int show, int | |||
| 895 | while (xs_list_iter(&list, &v)) { | 895 | while (xs_list_iter(&list, &v)) { |
| 896 | xs *msg = NULL; | 896 | xs *msg = NULL; |
| 897 | 897 | ||
| 898 | if (!valid_status(object_get_by_md5(v, &msg, NULL))) | 898 | if (!valid_status(timeline_get_by_md5(snac, v, &msg))) |
| 899 | continue; | 899 | continue; |
| 900 | 900 | ||
| 901 | s = html_entry(snac, s, msg, local, 0, v); | 901 | s = html_entry(snac, s, msg, local, 0, v); |
| @@ -1256,7 +1256,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * | |||
| 1256 | while (xs_list_iter(&p, &v)) { | 1256 | while (xs_list_iter(&p, &v)) { |
| 1257 | xs *msg = NULL; | 1257 | xs *msg = NULL; |
| 1258 | 1258 | ||
| 1259 | if (!valid_status(timeline_get(&snac, v, &msg))) | 1259 | if (!valid_status(timeline_get_by_md5(&snac, v, &msg))) |
| 1260 | continue; | 1260 | continue; |
| 1261 | 1261 | ||
| 1262 | char *id = xs_dict_get(msg, "id"); | 1262 | char *id = xs_dict_get(msg, "id"); |