Преглед изворни кода

still remove the federated share even if we cant notify the remote

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v13.0.0beta1
Robin Appelman пре 6 година
родитељ
комит
7fa02905aa
No account linked to committer's email address
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7
    2
      apps/files_sharing/lib/External/Manager.php

+ 7
- 2
apps/files_sharing/lib/External/Manager.php Прегледај датотеку

@@ -366,8 +366,13 @@ class Manager {
$result = $getShare->execute(array($hash, $this->uid));

if ($result) {
$share = $getShare->fetch();
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
try {
$share = $getShare->fetch();
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
} catch (\Exception $e) {
// if we fail to notify the remote (probably cause the remote is down)
// we still want the share to be gone to prevent undeletable remotes
}
}
$getShare->closeCursor();


Loading…
Откажи
Сачувај