mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix: commiter email is blank
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user