Node.js based forum software built for the modern web
fixed crash on empty aboutme
Julian Lam440bd5c37c0b
diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.jsindex 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 = [{