Browse Source

fix: commiter email is blank

tags/v3.1.5
yystopf 4 years ago
parent
commit
7e8e3e1b39
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      app/views/repositories/commits.json.jbuilder

+ 1
- 3
app/views/repositories/commits.json.jbuilder 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']


Loading…
Cancel
Save