diff options
Diffstat (limited to 'lib/Api')
-rw-r--r-- | lib/Api/v1/Circles.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php index 64f4c597..48b2bd86 100644 --- a/lib/Api/v1/Circles.php +++ b/lib/Api/v1/Circles.php @@ -458,7 +458,22 @@ class Circles { /** - * Circles::generateLink(); + * Circles::generateAbsoluteLink(); + * + * Returns the absolute link to get access to a local circle. + * + * @param string $circleUniqueId + * + * @return string + */ + public static function generateAbsoluteLink($circleUniqueId) { + return \OC::$server->getURLGenerator() + ->linkToRouteAbsolute('circles.Navigation.navigate') . '#' . $circleUniqueId; + } + + + /** + * Circles::generateRemoteLink(); * * Returns the link to get access to a remote circle. * @@ -529,4 +544,4 @@ class Circles { return $c->query(CirclesService::class) ->getFilesForCircles($circleUniqueIds); } -}
\ No newline at end of file +} |