fix: truncate pictureUrl if too long (#1311)

pull/1365/head
NGPixel 5 years ago
parent 0755c538ed
commit 4698afdaeb

@ -204,7 +204,10 @@ module.exports = class User extends Model {
} }
// Parse picture URL // 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 // Update existing user
if (user) { if (user) {

Loading…
Cancel
Save