dev_forum
cxt 6 years ago
parent efd83e4f81
commit e25427ff02

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

Loading…
Cancel
Save