fix: not show commiter avatar

This commit is contained in:
2021-03-30 16:34:12 +08:00
parent d7a459bad2
commit d0a65775aa
6 changed files with 19 additions and 6 deletions

View File

@@ -26,9 +26,9 @@ if @project.forge?
end
json.author do
json.partial! 'commit_author', user: render_commit_author(commit['author'])
json.partial! 'commit_author', user: render_commit_author(commit['commit']['author']), name: commit['commit']['author']['name']
end
json.committer do
json.partial! 'commit_author', user: render_commit_author(commit['committer'])
json.partial! 'commit_author', user: render_commit_author(commit['commit']['committer']), name: commit['commit']['committer']['name']
end
end