-rw-r--r-- | ui-atom.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -33,5 +33,5 @@ void add_entry(struct commit *commit, char *host) html("</name>\n"); } - if (info->author_email) { + if (info->author_email && !ctx.cfg.noplainemail) { mail = xstrdup(info->author_email); t = strchr(mail, '<'); @@ -53,5 +53,6 @@ void add_entry(struct commit *commit, char *host) html("</published>\n"); if (host) { - html("<link rel='alternate' type='text/html' href='http://"); + html("<link rel='alternate' type='text/html' href='"); + html(cgit_httpscheme()); html_attr(host); html_attr(cgit_pageurl(ctx.repo->url, "commit", NULL)); @@ -114,5 +115,6 @@ void cgit_print_atom(char *tip, char *path, int max_count) html("</subtitle>\n"); if (host) { - html("<link rel='alternate' type='text/html' href='http://"); + html("<link rel='alternate' type='text/html' href='"); + html(cgit_httpscheme()); html_attr(host); html_attr(cgit_repourl(ctx.repo->url)); |