mirror of https://github.com/nextcloud/server
Merge pull request #33450 from sazanof/bug/base64-card-dav-search
Fix photo url generation (add URI type to VCard2Array)
This commit is contained in:
commit
132f842f80
|
@ -273,7 +273,7 @@ class AddressBookImpl implements IAddressBook {
|
|||
];
|
||||
|
||||
foreach ($vCard->children() as $property) {
|
||||
if ($property->name === 'PHOTO' && $property->getValueType() === 'BINARY') {
|
||||
if ($property->name === 'PHOTO' && in_array($property->getValueType(), ['BINARY', 'URI'])) {
|
||||
$url = $this->urlGenerator->getAbsoluteURL(
|
||||
$this->urlGenerator->linkTo('', 'remote.php') . '/dav/');
|
||||
$url .= implode('/', [
|
||||
|
|
Loading…
Reference in New Issue