diff options
author | default <nobody@localhost> | 2022-12-02 19:39:17 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-02 19:39:17 +0100 |
commit | c06136a8ac480a2ff350f751ddc710c3a5f264c3 (patch) | |
tree | 90a01acdc2f13ed9b285eee4791bec36a70632f8 /html.c | |
parent | 33c8a73c17667b117f1bb720a5a32c485fd7d130 (diff) |
Fixed one post queries.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1066,12 +1066,14 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * else if (xs_startswith(p_path, "p/")) { /* a timeline with just one entry */ - xs *id = xs_fmt("%s/%s", snac.actor, p_path); - xs *fn = _timeline_find_fn(&snac, id); + xs *id = xs_fmt("%s/%s", snac.actor, p_path); + xs *msg = NULL; - if (fn != NULL) { + if (valid_status(object_get(id, &msg, NULL))) { + xs *md5 = xs_md5_hex(id, strlen(id)); xs *list = xs_list_new(); - list = xs_list_append(list, fn); + + list = xs_list_append(list, md5); *body = html_timeline(&snac, list, 1); *b_size = strlen(*body); |