aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-05 17:39:40 +0100
committerdefault <nobody@localhost>2023-02-05 17:39:40 +0100
commitbad9f3a8c638f434bd04243791aecce950a104ba (patch)
tree2f213eb19182f508cb407278fcdc71942f35187d /html.c
parent12aedfadfd9c7805bb7138f64695858b6ceca62c (diff)
Renamed timeline_get() to timeline_get_by_md5(), as that is what id does.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 2f9cf77..893db2e 100644
--- a/html.c
+++ b/html.c
@@ -830,7 +830,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons
p = children;
while (xs_list_iter(&p, &cmd5)) {
xs *chd = NULL;
- object_get_by_md5(cmd5, &chd, NULL);
+ timeline_get_by_md5(snac, cmd5, &chd);
if (older_open && left <= 3) {
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
while (xs_list_iter(&list, &v)) {
xs *msg = NULL;
- if (!valid_status(object_get_by_md5(v, &msg, NULL)))
+ if (!valid_status(timeline_get_by_md5(snac, v, &msg)))
continue;
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 *
while (xs_list_iter(&p, &v)) {
xs *msg = NULL;
- if (!valid_status(timeline_get(&snac, v, &msg)))
+ if (!valid_status(timeline_get_by_md5(&snac, v, &msg)))
continue;
char *id = xs_dict_get(msg, "id");