fix: Settings page picture url fix (#55673)

This commit is contained in:
Gagan Bhullar
2024-07-30 01:22:38 -06:00
committed by GitHub
parent 2e9e42c74e
commit 9090c0803f
3 changed files with 7 additions and 3 deletions

View File

@@ -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')