mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix 提交日志提交用户信息不匹配
This commit is contained in:
@@ -5,8 +5,8 @@ class CommitLogsController < ApplicationController
|
||||
ref = params[:ref]
|
||||
commit_id = params[:commits][0][:id]
|
||||
message = params[:commits][0][:message]
|
||||
user_name = params[:message][0][:committer][:username]
|
||||
user_mail = params[:message][0][:committer][:email]
|
||||
user_name = params[:pusher][:login]
|
||||
user_mail = params[:pusher][:email]
|
||||
user = User.find_by(mail: user_mail)
|
||||
user = User.find_by(login: user_name) if user.blank?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user