commit ec9f2c528eb5c8c9de8cc29967a80fb52a1de431
parent 76a749e3f003fc5c1f9b92b8375e27f5875511ca
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 4 Jan 2020 22:12:51 -0600
Use sha256 for hashing
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -5,10 +5,10 @@
<hr/>
<div id="{{ $hash }}">
<b>{{ or .name (i18n "hyperskip-name-default") }}</b>
- {{- if eq (.email_hash | last 10) ($.Site.Author.email | md5 | last 10) -}}
+ {{- if eq (.email_hash | last 10) ($.Site.Author.email | sha256 | last 10) -}}
✦
{{- else -}}
- <code>{{- .email_hash | last 10 -}}</code>
+ <code>{{ .email_hash | last 10 }}</code>
{{- end -}}
<span style="float:right;">