Browse Source

修复: 用户名称展示时只去掉首末的空格

pull/313/head
yystopf 4 years ago
parent
commit
3e4dd90e17
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/models/user.rb

+ 2
- 1
app/models/user.rb View File

@@ -553,7 +553,8 @@ class User < Owner
return '游客' unless logged?
name = lastname + firstname
name = name.blank? ? (nickname.blank? ? login : nickname) : name
name.gsub(/\s+/, '').strip #6.11 -hs
# name.gsub(/\s+/, '').strip #6.11 -hs
name.strip
end

def only_real_name


Loading…
Cancel
Save