fix: commiter email is blank
This commit is contained in:
parent
d1246b8e30
commit
7e8e3e1b39
|
@ -9,9 +9,7 @@ else
|
||||||
|
|
||||||
forge_user =
|
forge_user =
|
||||||
if commiter.present?
|
if commiter.present?
|
||||||
User.simple_select.find_by(mail: commiter['email'])
|
User.simple_select.find_by(gitea_uid: commiter['id'])
|
||||||
else
|
|
||||||
User.simple_select.find_by(mail: commit['commit']['committer']['email'])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
json.sha commit['sha']
|
json.sha commit['sha']
|
||||||
|
|
Loading…
Reference in New Issue