diff --git a/lib/Db/Circle.php b/lib/Db/Circle.php index fad2f0cb7..194cae86b 100644 --- a/lib/Db/Circle.php +++ b/lib/Db/Circle.php @@ -31,7 +31,7 @@ class Circle extends RelationalObject { protected $object; public function __construct(\OCA\Circles\Model\Circle $circle) { - $primaryKey = IShare::TYPE_CIRCLE . ':' . $circle->getUniqueId(); + $primaryKey = $circle->getUniqueId(); parent::__construct($primaryKey, $circle); } @@ -40,7 +40,8 @@ class Circle extends RelationalObject { 'uid' => $this->object->getUniqueId(), 'displayname' => $this->object->getName(), 'typeString' => $this->object->getTypeString(), - 'circleOwner' => $this->object->getOwner() + 'circleOwner' => $this->object->getOwner(), + 'type' => 7 ]; } } diff --git a/lib/Db/Group.php b/lib/Db/Group.php index 451078ae4..516afb323 100644 --- a/lib/Db/Group.php +++ b/lib/Db/Group.php @@ -28,14 +28,15 @@ use OCP\Share\IShare; class Group extends RelationalObject { public function __construct(IGroup $group) { - $primaryKey = IShare::TYPE_GROUP . ':' . $group->getGID(); + $primaryKey = $group->getGID(); parent::__construct($primaryKey, $group); } public function getObjectSerialization() { return [ 'uid' => $this->object->getGID(), - 'displayname' => $this->object->getDisplayName() + 'displayname' => $this->object->getDisplayName(), + 'type' => 1 ]; } } diff --git a/lib/Db/User.php b/lib/Db/User.php index 83ff2fc32..0a1334a35 100644 --- a/lib/Db/User.php +++ b/lib/Db/User.php @@ -28,14 +28,15 @@ use OCP\Share\IShare; class User extends RelationalObject { public function __construct(IUser $user) { - $primaryKey = IShare::TYPE_USER . ':' . $user->getUID(); + $primaryKey = $user->getUID(); parent::__construct($primaryKey, $user); } public function getObjectSerialization() { return [ 'uid' => $this->object->getUID(), - 'displayname' => $this->object->getDisplayName() + 'displayname' => $this->object->getDisplayName(), + 'type' => 0 ]; } diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue index 3d18bdfa2..50e388031 100644 --- a/src/components/board/Board.vue +++ b/src/components/board/Board.vue @@ -24,12 +24,12 @@