summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/html.c b/html.c
index f7766e6..d486139 100644
--- a/html.c
+++ b/html.c
@@ -1066,12 +1066,14 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
1066 else 1066 else
1067 if (xs_startswith(p_path, "p/")) { 1067 if (xs_startswith(p_path, "p/")) {
1068 /* a timeline with just one entry */ 1068 /* a timeline with just one entry */
1069 xs *id = xs_fmt("%s/%s", snac.actor, p_path); 1069 xs *id = xs_fmt("%s/%s", snac.actor, p_path);
1070 xs *fn = _timeline_find_fn(&snac, id); 1070 xs *msg = NULL;
1071 1071
1072 if (fn != NULL) { 1072 if (valid_status(object_get(id, &msg, NULL))) {
1073 xs *md5 = xs_md5_hex(id, strlen(id));
1073 xs *list = xs_list_new(); 1074 xs *list = xs_list_new();
1074 list = xs_list_append(list, fn); 1075
1076 list = xs_list_append(list, md5);
1075 1077
1076 *body = html_timeline(&snac, list, 1); 1078 *body = html_timeline(&snac, list, 1);
1077 *b_size = strlen(*body); 1079 *b_size = strlen(*body);