From d9625228cd32c2e14d5a93eabcf675681eab4777 Mon Sep 17 00:00:00 2001 From: Alfredo Armanini Date: Thu, 12 Oct 2017 17:01:25 +0200 Subject: [PATCH] Add coverPhoto to profile information --- lib/profile/googleplus.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/profile/googleplus.js b/lib/profile/googleplus.js index 0607ba1..d7cf992 100644 --- a/lib/profile/googleplus.js +++ b/lib/profile/googleplus.js @@ -41,7 +41,10 @@ exports.parse = function(json) { if (json.image) { profile.photos = [{ value: json.image.url }]; } + if (json.cover && json.cover.coverPhoto && json.cover.coverPhoto.url) { + profile.coverPhoto = json.cover.coverPhoto.url; + } profile.gender = json.gender; - + return profile; };