diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-11-25 15:00:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 15:00:01 +0100 |
commit | 04fbcdcdf29164ed238cee0473c7a76862cc982e (patch) | |
tree | 1dd9dd46cb5d571b9262e487f5610f32fb3f6f11 | |
parent | c886b3e2213c2e7f01e8be5c82e811ede80f14d4 (diff) | |
parent | 344730d161243d69b24b5f8857949ba474db8934 (diff) |
Merge pull request #2533 from nextcloud/fix/check-for-photo-index
Add isset check for PHOTO in SocialApiService
-rw-r--r-- | lib/Service/SocialApiService.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/SocialApiService.php b/lib/Service/SocialApiService.php index 129068c5..b7a4d3a8 100644 --- a/lib/Service/SocialApiService.php +++ b/lib/Service/SocialApiService.php @@ -227,9 +227,10 @@ class SocialApiService { $changes = []; $changes['URI'] = $contact['URI']; $changes['VERSION'] = $contact['VERSION']; + $this->addPhoto($changes, $imageType, base64_encode($socialdata)); - if (isset($contact['PHOTO']) && $changes['PHOTO'] === $contact['PHOTO']) { + if (isset($changes['PHOTO'], $contact['PHOTO']) && $changes['PHOTO'] === $contact['PHOTO']) { return new JSONResponse([], Http::STATUS_NOT_MODIFIED); } |