fixed 贡献者匹配用户email,名称区分

This commit is contained in:
xxq250 2023-05-18 14:26:38 +08:00
parent 09b1007800
commit 8fbf1b4a35
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if user.present?
json.login user.login
json.email user.mail
json.type user.type
json.name user.real_name
json.name (user["name"] || contributor["name"] || contributor["login"]).to_s.downcase
json.image_url url_to_avatar(user)
json.contribution_perc user.simple_contribution_perc(project, contributor["contribution_perc"]) if user.present?
end