mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Remove federated sharing address books which are the same as local ones
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -262,8 +262,12 @@ class AddressBookImpl implements IAddressBook {
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->addressBookInfo['principaluri'] === 'principals/system/system' &&
|
||||
$this->addressBookInfo['uri'] === 'system') {
|
||||
if (
|
||||
$this->addressBookInfo['principaluri'] === 'principals/system/system' && (
|
||||
$this->addressBookInfo['uri'] === 'system' ||
|
||||
$this->addressBookInfo['{DAV:}displayname'] === $this->urlGenerator->getBaseUrl()
|
||||
)
|
||||
) {
|
||||
$result['isLocalSystemBook'] = true;
|
||||
}
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user