Browse Source

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

pull/347/head
xxq250 1 year ago
parent
commit
23c0bcbf36
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/users/me.json.jbuilder

+ 1
- 1
app/views/users/me.json.jbuilder 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)


Loading…
Cancel
Save