Browse Source

fix: lastcommit author and committer

tags/v3.2.0
yystopf 4 years ago
parent
commit
c9bd81af4e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/views/repositories/_commit.json.jbuilder

+ 2
- 2
app/views/repositories/_commit.json.jbuilder View File

@@ -26,9 +26,9 @@ if @project.forge?
end

json.author do
json.partial! 'commit_author', user: render_commit_author(commit['author']), name: commit['commit']['author']['name']
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']), name: commit['commit']['committer']['name']
json.partial! 'commit_author', user: render_commit_author(commit['commit']['committer']), name: commit['commit']['committer']['name']
end
end

Loading…
Cancel
Save