fix: commiter email is blank
This commit is contained in:
parent
d1246b8e30
commit
7e8e3e1b39
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue