From 5bb879ae7ccb8dfd6c2c90206f65ac1174ceebdd Mon Sep 17 00:00:00 2001 From: nilsding Date: Thu, 13 Nov 2014 19:27:24 +0100 Subject: [PATCH] fixed fuckup --- app/helpers/user_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 6ddd5e99..babb3f22 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -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