mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
修改commits报错
This commit is contained in:
@@ -45,6 +45,7 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def commits
|
||||
@create_user = @project.owner
|
||||
@hash_commit = Gitea::Repository::Commits::ListService.new(@project.owner.login, @project.identifier,
|
||||
sha: params[:sha], page: params[:page], limit: params[:limit], token: current_user&.gitea_token).call
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ else
|
||||
json.message commit['commit']['message']
|
||||
json.timestamp render_unix_time(commit['commit']['author']['date'])
|
||||
json.time_from_now time_from_now(commit['commit']['author']['date'])
|
||||
json.partial! 'author', user: @project.owner
|
||||
json.partial! 'author', locals: {user: @create_user}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user