commit 1177268c8a611fc377c353a5ef4bb9416309a0d3 from: Tracey Emery date: Tue Jan 28 23:21:58 2020 UTC don't display author email on summary or commit briefs, introduced with gw_tag updates commit - 4ff7391f3dd3c0801e087257acb6327d640ea76d commit + 1177268c8a611fc377c353a5ef4bb9416309a0d3 blob - 66a55a759db995e8f86a75a33087e99e7818526a blob + f7bb586fd54ca2d00f227ba62eda2df9d9d43f8b --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -1998,9 +1998,17 @@ gw_get_commit(struct gw_trans *gw_trans, struct gw_hea header->committer_time = got_object_commit_get_committer_time(header->commit); - header->author = strdup( - gw_html_escape(got_object_commit_get_author(header->commit)) - ); + + if (gw_trans->action != GW_BRIEFS && gw_trans->action != GW_SUMMARY) { + header->author = strdup( + gw_html_escape(got_object_commit_get_author(header->commit)) + ); + } else { + header->author = strdup( + got_object_commit_get_author(header->commit) + ); + } + header->committer = strdup( gw_html_escape(got_object_commit_get_committer(header->commit)) );