mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-27 19:00:42 -04:00
fix: Settings page picture url fix (#55673)
This commit is contained in:
@@ -179,7 +179,7 @@ function updateMyAbout(req, res, next) {
|
||||
// prevent dataurls from being stored
|
||||
const update = isURL(picture, { require_protocol: true })
|
||||
? { name, location, about, picture }
|
||||
: { name, location, about };
|
||||
: { name, location, about, picture: '' };
|
||||
return user.updateAttributes(
|
||||
update,
|
||||
createStandardHandler(req, res, next, 'flash.updated-about-me')
|
||||
|
||||
Reference in New Issue
Block a user