fixed fuckup

This commit is contained in:
nilsding 2014-11-13 19:27:24 +01:00
parent 4ea3b99ff3
commit 5bb879ae7c
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module UserHelper
def user_screen_name(user, anonymous=false, url=true) def user_screen_name(user, anonymous=false, url=true)
return APP_CONFIG['anonymous_name'] if user.nil? || anonymous return APP_CONFIG['anonymous_name'] if user.nil? || anonymous
name = user.display_name.blank? ? user.screen_name : user.display_name 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 name
end end
end end