From 43d2b4ae42e1c4828e7195b4d6b525e23600235e Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 8 Jun 2017 21:53:24 -0100 Subject: [PATCH] using Circles::generateLink() Signed-off-by: Maxence Lange --- lib/Activity/Provider.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Activity/Provider.php b/lib/Activity/Provider.php index e82e870..5512d30 100644 --- a/lib/Activity/Provider.php +++ b/lib/Activity/Provider.php @@ -3,6 +3,7 @@ namespace OCA\Mood\Activity; +use OCA\Circles\Api\v1\Circles; use OCA\Circles\Model\FederatedLink; use OCA\Circles\Model\SharingFrame; use OCA\Mood\Service\MiscService; @@ -156,9 +157,7 @@ private function generateCircleParameter(SharingFrame $frame) { 'type' => 'circle', 'id' => $frame->getCircleId(), 'name' => $frame->getCircleName(), - 'link' => \OC::$server->getURLGenerator() - ->linkToRoute('circles.Navigation.navigate') - . '#' . $frame->getCircleId() + 'link' => Circles::generateLink($frame->getCircleId()) ]; }