From dada791df64c6fe5ef6e447da817d8e0fb2db255 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 17 Jul 2022 21:19:36 +0100 Subject: [PATCH] Fix gravatar on reflog --- src/methods/filters.rs | 4 ++++ templates/repo/log.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/methods/filters.rs b/src/methods/filters.rs index 3287bf4..58df841 100644 --- a/src/methods/filters.rs +++ a/src/methods/filters.rs @@ -9,3 +9,7 @@ pub fn hex(s: &[u8]) -> Result { Ok(hex::encode(s)) } + +pub fn md5(s: &str) -> Result { + Ok(hex::encode(&md5::compute(s).0)) +} diff --git a/templates/repo/log.html b/templates/repo/log.html index 4239127..2d8167d 100644 --- a/templates/repo/log.html +++ a/templates/repo/log.html @@ -22,7 +22,7 @@ {{ commit.summary }} - + {{ commit.author.name }} -- rgit 0.1.3