From c1b4308b490f1b3552e556c7690cafcb0b4bab74 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:33:12 -0700 Subject: Let cgit_pageurl join a feed entry's commit id --- source/ui-atom.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'source') diff --git a/source/ui-atom.c b/source/ui-atom.c index 42c7f41..065d5cd 100644 --- a/source/ui-atom.c +++ b/source/ui-atom.c @@ -105,7 +105,6 @@ static void print_entry(struct commit *commit, const char *host) { struct commitinfo *info; char *hex, *pageurl; - char delim = '&'; info = cgit_parse_commit(commit); hex = oid_to_hex(&commit->object.oid); @@ -135,15 +134,8 @@ static void print_entry(struct commit *commit, const char *host) xml_txt(feed_date(info->author_date)); html("\n"); html("url, "commit", cgit_fmt("id=%s", hex)); + html_attrf("%s%s%s", cgit_httpscheme(), host, pageurl); html("'/>\n"); free(pageurl); html(""); -- cgit