Skip to content

Commit d23b723

Browse files
authored
Merge pull request #27979 from nextcloud/backport/27884/stable22
[stable22] Allow to get a local cloud id without going through the contacts manager
2 parents 4798a29 + 41ca0af commit d23b723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public function getCloudId() {
466466
$uid = $this->getUID();
467467
$server = $this->urlGenerator->getAbsoluteURL('/');
468468
$server = rtrim($this->removeProtocolFromUrl($server), '/');
469-
return \OC::$server->getCloudIdManager()->getCloudId($uid, $server)->getId();
469+
return $uid . '@' . $server;
470470
}
471471

472472
/**

0 commit comments

Comments
 (0)