summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-20 05:51:54 +0100
committerdefault <nobody@localhost>2022-11-20 05:51:54 +0100
commite11fc49fd7c8764c0cc6fa651a1d7ef3d70ab90f (patch)
tree24c1728b06320f5cc98a49fb6e741daabaa72964
parent5882ed15de8bf52d79e3a42beee61da03a42586e (diff)
Add a link to the post in each RSS entry.
-rw-r--r--html.c4
1 files changed, 4 insertions, 0 deletions
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, "<", "&lt;");
content = xs_replace_i(content, ">", "&gt;");
+ /* add the post link */
+ xs *l = xs_fmt("<p><a href=\"%s\">%s</a><p>", id, id);
+ content = xs_str_cat(content, l);
+
if (strlen(title) > 40)
title = xs_crop(title, 0, i = 40);