Merge branch 'staging' of http://github.com/FreeCodeCamp/freecodecamp into staging
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
var defaultProfileImage =
|
||||
require('../../common/utils/constantStrings.json').defaultProfileImage;
|
||||
var message =
|
||||
'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits';
|
||||
|
||||
@@ -9,8 +11,7 @@ module.exports = function(app) {
|
||||
|
||||
function index(req, res, next) {
|
||||
if (req.user && !req.user.picture) {
|
||||
req.user.picture =
|
||||
'https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png';
|
||||
req.user.picture = defaultProfileImage;
|
||||
|
||||
req.user.save(function(err) {
|
||||
if (err) { return next(err); }
|
||||
|
Reference in New Issue
Block a user