Merge pull request #1717 from nextcloud/stable10-backport-1580
[stable10] Unset user PHOTO before setting new one in OCA\DAV\CardDAV\Converter:…
This commit is contained in:
commit
b4ef49744b
|
@ -92,6 +92,7 @@ class Converter {
|
|||
}
|
||||
|
||||
if($this->propertyNeedsUpdate($vCard, 'PHOTO', $image)) {
|
||||
unset($vCard->PHOTO);
|
||||
$vCard->add('PHOTO', $image->data(), ['ENCODING' => 'b', 'TYPE' => $image->mimeType()]);
|
||||
$updated = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue