diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-11 10:11:42 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-11 10:41:55 +0100 |
commit | 2263b8b6937313500e29f9b00c8e36f1121bb054 (patch) | |
tree | 7ce94a108ac8035b1fb516fb817cff74962ef2ec /apps/files_sharing/api | |
parent | 5165998723925b414f688021aeaa8b90a844a918 (diff) | |
download | nextcloud-server-2263b8b6937313500e29f9b00c8e36f1121bb054.tar.gz nextcloud-server-2263b8b6937313500e29f9b00c8e36f1121bb054.zip |
Remove the notification if accepting/declining failed because of 404
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/remote.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/api/remote.php b/apps/files_sharing/api/remote.php index 4b7192994a7..8b47955b51e 100644 --- a/apps/files_sharing/api/remote.php +++ b/apps/files_sharing/api/remote.php @@ -67,6 +67,9 @@ class Remote { return new \OC_OCS_Result(); } + // Make sure the user has no notification for something that does not exist anymore. + $externalManager->processNotification((int) $params['id']); + return new \OC_OCS_Result(null, 404, "wrong share ID, share doesn't exist."); } @@ -90,12 +93,15 @@ class Remote { return new \OC_OCS_Result(); } + // Make sure the user has no notification for something that does not exist anymore. + $externalManager->processNotification((int) $params['id']); + return new \OC_OCS_Result(null, 404, "wrong share ID, share doesn't exist."); } /** * @param array $share Share with info from the share_external table - * @return enriched share info with data from the filecache + * @return array enriched share info with data from the filecache */ private static function extendShareInfo($share) { $view = new \OC\Files\View('/' . \OC_User::getUser() . '/files/'); |