Skip to content

Node.js based forum software built for the modern web

fix default cover image on all profile pages

psychobunnyf17391e6a259
diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js
index a34d0df40d..12e4a3a924 100644
--- a/src/controllers/accounts/helpers.js
+++ b/src/controllers/accounts/helpers.js
@@ -101,6 +101,9 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
userData.signature = validator.escape(userData.signature);
userData.aboutme = validator.escape(userData.aboutme || '');
+ userData['cover:url'] = userData['cover:url'] || require('../../coverPhoto').getDefaultProfileCover(userData.uid);
+ userData['cover:position'] = userData['cover:position'] || '50% 50%';
+
next(null, userData);
}
], callback);