diff options
author | Anna Larch <anna@nextcloud.com> | 2021-11-22 18:32:49 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2021-11-22 18:32:49 +0300 |
commit | 344730d161243d69b24b5f8857949ba474db8934 (patch) | |
tree | 1d32a11b9493a6c03b76757d7738ea232d6cb293 /lib/Service | |
parent | 714f079c19bf15b690c789a80395fd8fb5342bdd (diff) |
Add isset check for PHOTO in SocialApiService
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/Service')
-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); } |