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