Skip to content

Commit 6bc93c7

Browse files
nickvergessenDeepDiver1975
authored andcommitted
Disable the remote sharing notifications until they work properly
1 parent 9e1cd6d commit 6bc93c7

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/files_sharing/api/server2server.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public function createShare($params) {
8383
Activity::FILES_SHARING_APP, Activity::SUBJECT_REMOTE_SHARE_RECEIVED, array($user, trim($name, '/')), '', array(),
8484
'', '', $shareWith, Activity::TYPE_REMOTE_SHARE, Activity::PRIORITY_LOW);
8585

86+
/**
87+
* FIXME
8688
$urlGenerator = \OC::$server->getURLGenerator();
8789
8890
$notificationManager = \OC::$server->getNotificationManager();
@@ -104,6 +106,7 @@ public function createShare($params) {
104106
$notification->addAction($acceptAction);
105107
106108
$notificationManager->notify($notification);
109+
*/
107110

108111
return new \OC_OCS_Result();
109112
} catch (\Exception $e) {

apps/files_sharing/appinfo/app.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,12 @@ function() {
113113
}
114114
}
115115

116+
/**
117+
* FIXME
116118
$manager = \OC::$server->getNotificationManager();
117119
$manager->registerNotifier(function() {
118120
return new \OCA\Files_Sharing\Notifier(
119121
\OC::$server->getL10NFactory()
120122
);
121123
});
124+
*/

apps/files_sharing/lib/external/manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function acceptShare($id) {
214214
$acceptShare->execute(array(1, $mountPoint, $hash, $id, $this->uid));
215215
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'accept');
216216

217-
$this->scrapNotification($share['remote_id']);
217+
//FIXME $this->scrapNotification($share['remote_id']);
218218
return true;
219219
}
220220

@@ -237,7 +237,7 @@ public function declineShare($id) {
237237
$removeShare->execute(array($id, $this->uid));
238238
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
239239

240-
$this->scrapNotification($share['remote_id']);
240+
//FIXME $this->scrapNotification($share['remote_id']);
241241
return true;
242242
}
243243

0 commit comments

Comments
 (0)