From 2c0921fabe10f0c2b1f7ff4ccb7b2a2de5eb8fdc Mon Sep 17 00:00:00 2001 From: Regis Freyd Date: Fri, 23 Mar 2018 20:41:14 -0400 Subject: [PATCH] Add linkedin url in the Contact object returned by the API --- CHANGELOG | 2 +- app/Http/Resources/Contact/Contact.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 27a62bc1fa6..41530b39087 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ UNRELEASED CHANGES: -* +* Add Linkedin URL in the Contact object returned by the API RELEASED VERSIONS: diff --git a/app/Http/Resources/Contact/Contact.php b/app/Http/Resources/Contact/Contact.php index 9e44cbc71c5..ce0d660c2e7 100644 --- a/app/Http/Resources/Contact/Contact.php +++ b/app/Http/Resources/Contact/Contact.php @@ -55,6 +55,7 @@ public function toArray($request) 'career' => $this->when(! $this->is_partial, [ 'job' => $this->job, 'company' => $this->company, + 'linkedin_profile_url' => $this->linkedin_profile_url, ]), 'avatar' => $this->when(! $this->is_partial, [ 'url' => $this->getAvatarUrl(110),