From 440bd5c37c0b071cfbf30a089f6b26784bd5ac6c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 11 Nov 2015 15:19:11 -0500 Subject: [PATCH] fixed crash on empty aboutme --- src/controllers/accounts/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.js index 29e353b084..278211e94e 100644 --- a/src/controllers/accounts/profile.js +++ b/src/controllers/accounts/profile.js @@ -81,7 +81,7 @@ profileController.get = function(req, res, callback) { userData.profileviews = 1; } - var plainAboutMe = S(userData.aboutme).decodeHTMLEntities().stripTags().s; + var plainAboutMe = userData.aboutme ? S(userData.aboutme).decodeHTMLEntities().stripTags().s : ''; res.locals.metaTags = [ {