fixed fuckup
This commit is contained in:
parent
4ea3b99ff3
commit
5bb879ae7c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue