From 6b716855a90e427ac38449047832d59fd05a7036 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 26 Apr 2023 16:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A1=E7=8C=AE=E8=80=85=E5=AE=B9=E9=94=99?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/_contributor.json.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/_contributor.json.jbuilder b/app/views/repositories/_contributor.json.jbuilder index 001ddd8b1..b0547eba3 100644 --- a/app/views/repositories/_contributor.json.jbuilder +++ b/app/views/repositories/_contributor.json.jbuilder @@ -1,7 +1,7 @@ user = $redis_cache.hgetall("v2-owner-common:#{contributor["name"] || contributor["login"]}-#{contributor["email"]}") if user.blank? json.contributions contributor["commits"] || contributor["contributions"] - json.login (contributor["name"] || contributor["login"]).to_s.downcase + json.login nil json.type nil json.name (contributor["name"] || contributor["login"]).to_s.downcase json.email contributor["email"] @@ -10,7 +10,7 @@ if user.blank? else json.contributions contributor["commits"] || contributor["contributions"] json.id user["id"] - json.login (user["login"] || contributor["name"] || contributor["login"]).to_s.downcase + json.login user["login"] json.email user["email"] json.type user["type"] json.name (user["name"] || contributor["name"] || contributor["login"]).to_s.downcase