-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recover deleted circles shares #35526
Conversation
@@ -159,6 +159,11 @@ | |||
$result = array_merge($result, $this->getDeckShareHelper()->formatShare($share)); | |||
} catch (QueryException $e) { | |||
} | |||
} elseif ($share->getShareType() === IShare::TYPE_CIRCLE) { | |||
try { | |||
$result = array_merge($result, $this->getCirclesShareHelper()->formatShare($share)); |
Check failure
Code scanning / Psalm
UndefinedDocblockClass
* If the Circles application is not enabled or the helper is not available | ||
* a QueryException is thrown instead. | ||
* | ||
* @return \OCA\Circles\ShareAPIHelper |
Check failure
Code scanning / Psalm
UndefinedDocblockClass
*/ | ||
private function getCirclesShareHelper() { | ||
if (!$this->appManager->isEnabledForUser('circles')) { | ||
throw new QueryException(); |
Check notice
Code scanning / Psalm
DeprecatedClass Note
594baac
to
bdee2be
Compare
Signed-off-by: Maxence Lange <[email protected]>
bdee2be
to
76db2b0
Compare
/backport to stable27 |
/backport to stable26 |
throw new QueryException(); | ||
} | ||
|
||
return $this->serverContainer->get('\OCA\Circles\ShareByCircleProvider'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not \OCA\Circles\ShareAPIHelper
?
This is a follow-up to nextcloud/circles#1223 to list and recover deleted shares done to Circles