fixed crash on empty aboutme

v1.18.x
Julian Lam 9 years ago
parent 34725ec3e5
commit 440bd5c37c

@ -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 = [
{

Loading…
Cancel
Save