mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:19:52 +01:00
fixed fuckup
This commit is contained in:
parent
4ea3b99ff3
commit
5bb879ae7c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module UserHelper
|
|||
def user_screen_name(user, anonymous=false, url=true)
|
||||
return APP_CONFIG['anonymous_name'] if user.nil? || anonymous
|
||||
name = user.display_name.blank? ? user.screen_name : user.display_name
|
||||
return link_to(name, show_user_profile_path(current_user.screen_name)) if url
|
||||
return link_to(name, show_user_profile_path(user.screen_name)) if url
|
||||
name
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue