diff --git a/html.c b/html.c index be41587..2d8e1fd 100644 --- a/html.c +++ b/html.c @@ -1136,6 +1136,10 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * content = xs_replace_i(content, "<", "<"); content = xs_replace_i(content, ">", ">"); + /* add the post link */ + xs *l = xs_fmt("

%s

", id, id); + content = xs_str_cat(content, l); + if (strlen(title) > 40) title = xs_crop(title, 0, i = 40);