mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Avoid creating carddav activities for the system user
Because of the system addressbook synchronisation. Closes #32803 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8541707f32
commit
c6c3fd9aa9
1 changed files with 16 additions and 2 deletions
|
|
@ -103,7 +103,14 @@ class Backend {
|
|||
return;
|
||||
}
|
||||
|
||||
$principal = explode('/', $addressbookData['principaluri']);
|
||||
$principalUri = $addressbookData['principaluri'];
|
||||
|
||||
// We are not interested in changes from the system addressbook
|
||||
if ($principalUri === 'principals/system/system') {
|
||||
return;
|
||||
}
|
||||
|
||||
$principal = explode('/', $principalUri);
|
||||
$owner = array_pop($principal);
|
||||
|
||||
$currentUser = $this->userSession->getUser();
|
||||
|
|
@ -393,7 +400,14 @@ class Backend {
|
|||
return;
|
||||
}
|
||||
|
||||
$principal = explode('/', $addressbookData['principaluri']);
|
||||
$principalUri = $addressbookData['principaluri'];
|
||||
|
||||
// We are not interested in changes from the system addressbook
|
||||
if ($principalUri === 'principals/system/system') {
|
||||
return;
|
||||
}
|
||||
|
||||
$principal = explode('/', $principalUri);
|
||||
$owner = array_pop($principal);
|
||||
|
||||
$currentUser = $this->userSession->getUser();
|
||||
|
|
|
|||
Loading…
Reference in a new issue