commit e11fc49
default
·
2022-11-20 04:51:54 +0000 UTC
parent 5882ed1
Add a link to the post in each RSS entry.
1 files changed,
+4,
-0
M
html.c
M
html.c
+4,
-0
1@@ -1136,6 +1136,10 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
2 content = xs_replace_i(content, "<", "<");
3 content = xs_replace_i(content, ">", ">");
4
5+ /* add the post link */
6+ xs *l = xs_fmt("<p><a href=\"%s\">%s</a><p>", id, id);
7+ content = xs_str_cat(content, l);
8+
9 if (strlen(title) > 40)
10 title = xs_crop(title, 0, i = 40);
11