mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Merge pull request #550 from SISheogorath/fix/gitlabAvatar
Fix broken profile images in GitLab Fixes #549
This commit is contained in:
commit
a99cac0cf0
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue