summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/Converter.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/CardDAV/Converter.php')
-rw-r--r--apps/dav/lib/CardDAV/Converter.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php
index c3f27c0299e..a480f0ea45d 100644
--- a/apps/dav/lib/CardDAV/Converter.php
+++ b/apps/dav/lib/CardDAV/Converter.php
@@ -61,6 +61,10 @@ class Converter {
$publish = false;
+ if ($image !== null && isset($userData[AccountManager::PROPERTY_AVATAR])) {
+ $userData[AccountManager::PROPERTY_AVATAR]['value'] = true;
+ }
+
foreach ($userData as $property => $value) {
$shareWithTrustedServers =
@@ -68,9 +72,8 @@ class Converter {
$value['scope'] === AccountManager::VISIBILITY_PUBLIC;
$emptyValue = !isset($value['value']) || $value['value'] === '';
- $noImage = $image === null;
- if ($shareWithTrustedServers && (!$emptyValue || !$noImage)) {
+ if ($shareWithTrustedServers && !$emptyValue) {
$publish = true;
switch ($property) {
case AccountManager::PROPERTY_DISPLAYNAME: