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:
Diffstat (limited to 'lib/Api')
-rw-r--r--lib/Api/v1/Circles.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index ff51c575..9a9ffd2a 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -333,11 +333,10 @@ class Circles {
$c = self::getContainer();
$frame = new SharingFrame((string)$source, (string)$type);
- $frame->setCircleId($circleUniqueId);
$frame->setPayload($payload);
return $c->query('SharesService')
- ->createFrame($frame, (string)$broadcaster);
+ ->createFrame($circleUniqueId, $frame, (string)$broadcaster);
}
@@ -421,9 +420,9 @@ class Circles {
public static function generateCircleParameter(SharingFrame $frame) {
return [
'type' => 'circle',
- 'id' => $frame->getCircleId(),
- 'name' => $frame->getCircleName(),
- 'link' => self::generateLink($frame->getCircleId())
+ 'id' => $frame->getCircle()->getUniqueId(),
+ 'name' => $frame->getCircle()->getName(),
+ 'link' => self::generateLink($frame->getCircle()->getUniqueId())
];
}
} \ No newline at end of file