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

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Api
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2017-08-24 17:27:08 +0300
committerMaxence Lange <maxence@artificial-owl.com>2017-08-24 17:27:08 +0300
commit615c9f4fe7bf742a3a253044d015e9d3f31affae (patch)
tree8e1a991b4a456065c79a83ba11c35915ed951a28 /lib/Api
parent7125932e3c6f6ff905298237a273f57fdd18571b (diff)
include Contact to Circles
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Api')
-rw-r--r--lib/Api/Sharees.php4
-rw-r--r--lib/Api/v1/Circles.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Api/Sharees.php b/lib/Api/Sharees.php
index d308422f..c02118ae 100644
--- a/lib/Api/Sharees.php
+++ b/lib/Api/Sharees.php
@@ -84,9 +84,9 @@ class Sharees {
'shareType' => Share::SHARE_TYPE_CIRCLE,
'shareWith' => $entry->getUniqueId(),
'circleInfo' => $entry->getInfo(),
- 'circleOwner' => MiscService::staticGetDisplayName(
+ 'circleOwner' => MiscService::getDisplay(
$entry->getOwner()
- ->getUserId()
+ ->getUserId(), Member::TYPE_USER
)
],
];
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index 9a9ffd2a..3cd29a2d 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -401,7 +401,7 @@ class Circles {
if ($frame->getCloudId() !== null) {
$name = $frame->getAuthor() . '@' . $frame->getCloudId();
} else {
- $name = MiscService::staticGetDisplayName($frame->getAuthor());
+ $name = MiscService::getDisplay($frame->getAuthor(), Member::TYPE_USER);
}
return [