Commit 4698afda authored by NGPixel's avatar NGPixel

fix: truncate pictureUrl if too long (#1311)

parent 0755c538
......@@ -204,7 +204,10 @@ module.exports = class User extends Model {
}
// Parse picture URL
let pictureUrl = _.get(profile, 'picture', _.get(user, 'pictureUrl', null))
let pictureUrl = _.truncate(_.get(profile, 'picture', _.get(user, 'pictureUrl', null)), {
length: 255,
omission: ''
})
// Update existing user
if (user) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment