From 7303be9db210bc9426f1e1896bd24510f686ed87 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 18 Oct 2024 09:13:15 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20oauth2=E7=94=A8=E6=88=B7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/me.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/me.json.jbuilder b/app/views/users/me.json.jbuilder index e2d3693ae..c6f8cdc88 100644 --- a/app/views/users/me.json.jbuilder +++ b/app/views/users/me.json.jbuilder @@ -1,4 +1,4 @@ -json.username @user.full_name +json.username @user.full_name.to_s.each_char.select { |c| c.bytes.first < 240 }.join('') json.login @user.login json.user_id @user.id json.image_url url_to_avatar(@user)