fix: commiter email is blank

This commit is contained in:
yystopf 2021-09-01 10:28:11 +08:00
parent d1246b8e30
commit 7e8e3e1b39
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ else
forge_user =
if commiter.present?
User.simple_select.find_by(mail: commiter['email'])
else
User.simple_select.find_by(mail: commit['commit']['committer']['email'])
User.simple_select.find_by(gitea_uid: commiter['id'])
end
json.sha commit['sha']