summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-07-13 12:39:56 +0200
committerJulius Härtl <jus@bitgrid.net>2021-07-14 09:52:15 +0200
commitf43c2b45d8177e8c924b8f97f80c92164a3d5412 (patch)
treea2ba60f54475e190c9f8937a9f17b3bf6cce0e7d /lib
parent2a0bd663845bb8cd02fc7a507774851c0a11c69e (diff)
downloadnextcloud-server-f43c2b45d8177e8c924b8f97f80c92164a3d5412.tar.gz
nextcloud-server-f43c2b45d8177e8c924b8f97f80c92164a3d5412.zip
Directly return cloud id from user
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index cae698300d9..b588ca1a0ee 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -466,7 +466,7 @@ class User implements IUser {
$uid = $this->getUID();
$server = $this->urlGenerator->getAbsoluteURL('/');
$server = rtrim($this->removeProtocolFromUrl($server), '/');
- return \OC::$server->getCloudIdManager()->getCloudId($uid, $server)->getId();
+ return $uid . '@' . $server;
}
/**