Fix broken profile images
This commit is contained in:
@@ -104,8 +104,12 @@ module.exports = function (sequelize, DataTypes) {
|
|||||||
break
|
break
|
||||||
case 'gitlab':
|
case 'gitlab':
|
||||||
photo = profile.avatarUrl
|
photo = profile.avatarUrl
|
||||||
if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400')
|
if (photo) {
|
||||||
else photo = photo.replace(/(\?s=)\d*$/i, '$196')
|
if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400')
|
||||||
|
else photo = photo.replace(/(\?s=)\d*$/i, '$196')
|
||||||
|
} else {
|
||||||
|
photo = letterAvatars(profile.username)
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 'dropbox':
|
case 'dropbox':
|
||||||
// no image api provided, use gravatar
|
// no image api provided, use gravatar
|
||||||
|
|||||||
Reference in New Issue
Block a user