Skip to content

Commit

Permalink
Merge pull request #732 from nextcloud/backport/730/stable22
Browse files Browse the repository at this point in the history
[stable22] getDefinition
  • Loading branch information
ArtificialOwl authored Jul 27, 2021
2 parents 493164d + 246457d commit 49df75e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/CirclesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,16 @@ public function getLink(string $circleId, string $singleId): Membership {
}


/**
* @param Circle $circle
*
* @return string
*/
public function getDefinition(Circle $circle): string {
return $this->circleService->getDefinition($circle);
}


/**
* WIP
*
Expand Down
4 changes: 4 additions & 0 deletions lib/Service/CircleService.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ public function getDefinition(Circle $circle): string {
return $this->l10n->t('%s', [$source]);
}

if ($circle->isConfig(Circle::CFG_PERSONAL)) {
return $this->l10n->t('Personal Circle');
}

return $this->l10n->t(
'%s owned by %s',
[
Expand Down

0 comments on commit 49df75e

Please sign in to comment.