diff --git a/Server/lib/Web/auth/auth_daldalso.js b/Server/lib/Web/auth/auth_daldalso.js index 79d1c2304..393bb6a7d 100644 --- a/Server/lib/Web/auth/auth_daldalso.js +++ b/Server/lib/Web/auth/auth_daldalso.js @@ -22,8 +22,8 @@ module.exports.strategy = (strategyProcess, MainDB, Ajae) => { $p.id = o.id; $p.name = o.name; $p.title = o.name; - $p.image = o.profile.image || 'https://daldal.so/anonymous.png'; - $p.exordial = o.profile.text || ''; + $p.image = o.profile && o.profile.image ? o.profile.image : 'https://daldal.so/anonymous.png'; + $p.exordial = o.profile && o.profile.text ? o.profile.text : ''; strategyProcess(req, accessToken, MainDB, $p, done); }