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-21 16:52:37 +0300
committerMaxence Lange <maxence@artificial-owl.com>2017-08-21 16:52:37 +0300
commit1f5a47070a433e389b2792aeb605c0cdbad79e44 (patch)
tree35f8b90aadeeef33737c2813f6b2d42069144a91 /lib/Api
parent636cb5341855136fd83f3733f8ae2470889ec866 (diff)
SharingFrame now use Circle insteal of circle_id/circle_name/circle_type
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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