Remove mattermost integration

Signed-off-by: Erik Michelson <erik@liltv.de>
This commit is contained in:
Erik Michelson 2020-01-15 21:46:05 +01:00
parent 95355b8f01
commit c976217c12
No known key found for this signature in database
GPG key ID: 6C1E7B9159DABCBA
19 changed files with 7 additions and 125 deletions

View file

@ -117,15 +117,6 @@ module.exports = function (sequelize, DataTypes) {
photo = generateAvatarURL(profile.username)
}
break
case 'mattermost':
photo = profile.avatarUrl
if (photo) {
if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400')
else photo = photo.replace(/(\?s=)\d*$/i, '$196')
} else {
photo = generateAvatarURL(profile.username)
}
break
case 'dropbox':
photo = generateAvatarURL('', profile.emails[0].value, bigger)
break