Skip to content

Commit

Permalink
fix: mail hash method
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Jul 9, 2024
1 parent c5c1448 commit a68ee20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/server/function/twikoo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ async function parse (comment) {
}
if (isQQ(comment.mail)) {
commentDo.mail = addQQMailSuffix(comment.mail)
commentDo.mailMd5 = md5(normalizeMail(commentDo.mail))
commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail))
commentDo.avatar = await getQQAvatar(comment.mail)
}
return commentDo
Expand Down
2 changes: 1 addition & 1 deletion src/server/self-hosted/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ async function parse (comment, request) {
}
if (isQQ(comment.mail)) {
commentDo.mail = addQQMailSuffix(comment.mail)
commentDo.mailMd5 = md5(normalizeMail(commentDo.mail))
commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail))
commentDo.avatar = await getQQAvatar(comment.mail)
}
return commentDo
Expand Down
2 changes: 1 addition & 1 deletion src/server/self-hosted/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ async function parse (comment, request) {
}
if (isQQ(comment.mail)) {
commentDo.mail = addQQMailSuffix(comment.mail)
commentDo.mailMd5 = md5(normalizeMail(commentDo.mail))
commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail))
commentDo.avatar = await getQQAvatar(comment.mail)
}
return commentDo
Expand Down
2 changes: 1 addition & 1 deletion src/server/vercel/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ async function parse (comment, request) {
}
if (isQQ(comment.mail)) {
commentDo.mail = addQQMailSuffix(comment.mail)
commentDo.mailMd5 = md5(normalizeMail(commentDo.mail))
commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail))
commentDo.avatar = await getQQAvatar(comment.mail)
}
return commentDo
Expand Down

0 comments on commit a68ee20

Please sign in to comment.