fixed oauth2用户接口用户信息过滤表情

This commit is contained in:
xxq250 2024-10-18 09:13:15 +08:00
parent 3e09ee08d3
commit 7303be9db2
1 changed files with 1 additions and 1 deletions

View File

@ -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)