From 829ace0365687abb0d5f368478e9e8fe0614c3aa Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Wed, 4 Feb 2015 16:42:54 -0800 Subject: [PATCH] fix a strange edge case on public portfolio pages --- views/account/show.jade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/account/show.jade b/views/account/show.jade index 36a8122d3d..2f4d8648a1 100644 --- a/views/account/show.jade +++ b/views/account/show.jade @@ -11,7 +11,10 @@ block content if picture img.img-center.img-responsive.public-profile-img(src=picture) else - img.img-center.img-responsive.public-profile-img(src='#{user.gravatar(200)}') + if (user) + img.img-center.img-responsive.public-profile-img(src='#{user.gravatar(200)}') + else + img.img-center.img-responsive.public-profile-img(src='https://gravatar.com/avatar/d704cc72a5cd0bfa482ee71f4d557daa?s=200&d=retro') h1.text-center.negative-5 - if (twitterHandle) a.ion-social-twitter.text-primary(title="@#{username}'s Twitter Profile", href="http://twitter.com/#{twitterHandle}", target='_blank')