From 824eec6be06328f1f85e43ed37248284eb1a7209 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Tue, 3 Jun 2025 12:38:51 +0300 Subject: [PATCH] appview: repo: use committer email for verification in commit view Signed-off-by: Anirudh Oppiliappan --- appview/pages/templates/repo/commit.html | 3 ++- appview/repo/repo.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index 8571d1b3..0a6c1e88 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -58,7 +58,8 @@
This commit was signed with the committer's known signature.
{{ i "user" "w-4 h-4" }} - {{ $didOrHandle }} + {{ $committerDidOrHandle := index $.EmailToDidOrHandle $commit.Committer.Email }} + {{ $committerDidOrHandle }}
SSH Key Fingerprint:
diff --git a/appview/repo/repo.go b/appview/repo/repo.go index aebcc76e..e652bbe3 100644 --- a/appview/repo/repo.go +++ b/appview/repo/repo.go @@ -462,7 +462,7 @@ func (rp *Repo) RepoCommit(w http.ResponseWriter, r *http.Request) { return } - emailToDidMap, err := db.GetEmailToDid(rp.db, []string{result.Diff.Commit.Author.Email}, true) + emailToDidMap, err := db.GetEmailToDid(rp.db, []string{result.Diff.Commit.Committer.Email, result.Diff.Commit.Author.Email}, true) if err != nil { log.Println("failed to get email to did mapping:", err) } -- 2.51.2