Node.js based forum software built for the modern web
fix profile views on redis
barisusakli1e543dd3946a
diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.jsindex 6bbaced751..e95fedd0d1 100644--- a/src/controllers/accounts/profile.js+++ b/src/controllers/accounts/profile.js@@ -84,7 +84,7 @@ profileController.get = function (req, res, callback) {userData['cover:url'] = userData['cover:url'] || require('../../coverPhoto').getDefaultProfileCover(userData.uid);userData['cover:position'] = userData['cover:position'] || '50% 50%';- if (!userData.profileviews) {+ if (!parseInt(userData.profileviews, 10)) {userData.profileviews = 1;}