fix: truncate pictureUrl if too long (#1311)
This commit is contained in:
1 parent
0755c538ed
commit
4698afdaeb
1 file changed
+4
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user