Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2021-05-29 14:04:26 +0300
committerMaxence Lange <maxence@artificial-owl.com>2021-05-29 14:04:26 +0300
commit11ad88e987c79bc36fa11002f94adb66fd9112de (patch)
tree94dc8776c7970da54230584f8c42970b65426c88 /apps/dav/lib/Connector
parent222ac9377489566970c65d10b1631438267184e7 (diff)
migration to Circles 22
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php
index b74747b1163..1ebe853e465 100644
--- a/apps/dav/lib/Connector/Sabre/Principal.php
+++ b/apps/dav/lib/Connector/Sabre/Principal.php
@@ -37,7 +37,7 @@
namespace OCA\DAV\Connector\Sabre;
use OC\KnownUser\KnownUserService;
-use OCA\Circles\Exceptions\CircleDoesNotExistException;
+use OCA\Circles\Exceptions\CircleNotFoundException;
use OCA\DAV\CalDAV\Proxy\ProxyMapper;
use OCA\DAV\Traits\PrincipalProxyTrait;
use OCP\App\IAppManager;
@@ -534,7 +534,7 @@ class Principal implements BackendInterface {
$circle = \OCA\Circles\Api\v1\Circles::detailsCircle($circleUniqueId, true);
} catch (QueryException $ex) {
return null;
- } catch (CircleDoesNotExistException $ex) {
+ } catch (CircleNotFoundException $ex) {
return null;
}
@@ -544,7 +544,7 @@ class Principal implements BackendInterface {
$principal = [
'uri' => 'principals/circles/' . $circleUniqueId,
- '{DAV:}displayname' => $circle->getName(),
+ '{DAV:}displayname' => $circle->getDisplayName(),
];
return $principal;
@@ -575,7 +575,7 @@ class Principal implements BackendInterface {
$circles = array_map(function ($circle) {
/** @var \OCA\Circles\Model\Circle $circle */
- return 'principals/circles/' . urlencode($circle->getUniqueId());
+ return 'principals/circles/' . urlencode($circle->getSingleId());
}, $circles);
return $circles;