mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Fix broken profile images
This commit is contained in:
parent
d1d6d5810b
commit
500207545f
1 changed files with 6 additions and 2 deletions
|
@ -104,8 +104,12 @@ module.exports = function (sequelize, DataTypes) {
|
|||
break
|
||||
case 'gitlab':
|
||||
photo = profile.avatarUrl
|
||||
if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400')
|
||||
else photo = photo.replace(/(\?s=)\d*$/i, '$196')
|
||||
if (photo) {
|
||||
if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400')
|
||||
else photo = photo.replace(/(\?s=)\d*$/i, '$196')
|
||||
} else {
|
||||
photo = letterAvatars(profile.username)
|
||||
}
|
||||
break
|
||||
case 'dropbox':
|
||||
// no image api provided, use gravatar
|
||||
|
|
Loading…
Reference in a new issue