add profile cover/position + profile picture on every account page

This commit is contained in:
psychobunny
2015-10-28 18:02:49 -04:00
parent f611e8bc45
commit a5b754eac3
2 changed files with 6 additions and 4 deletions

View File

@@ -76,9 +76,6 @@ profileController.get = function(req, res, callback) {
userData.profileviews = 1;
}
userData['cover:url'] = userData['cover:url'] || nconf.get('relative_path') + '/images/cover-default.png';
userData['cover:position'] = userData['cover:position'] || '50% 50%';
plugins.fireHook('filter:user.account', {userData: userData, uid: req.uid}, next);
}
], function(err, results) {