From 8fbf1b4a35d40222f5efb9cb3c22680b1faae289 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 18 May 2023 14:26:38 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E8=B4=A1=E7=8C=AE=E8=80=85=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E7=94=A8=E6=88=B7email=EF=BC=8C=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/_contributor.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/_contributor.json.jbuilder b/app/views/repositories/_contributor.json.jbuilder index 2deab09d2..861efb8bb 100644 --- a/app/views/repositories/_contributor.json.jbuilder +++ b/app/views/repositories/_contributor.json.jbuilder @@ -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