summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-08-22 03:17:17 +0200
committerJoas Schilling <coding@schilljs.com>2019-11-12 17:33:50 +0100
commite96c9e0e4a402277a9f18470c77503dd914c6de4 (patch)
tree5d1442e925f976578354224abdfe4ef2b56d16b5 /apps/federatedfilesharing/lib
parentdcdbea54e60d13d2508b71ebdcb7992f2ae5ef34 (diff)
downloadnextcloud-server-e96c9e0e4a402277a9f18470c77503dd914c6de4.tar.gz
nextcloud-server-e96c9e0e4a402277a9f18470c77503dd914c6de4.zip
Add the notifier and the API endpoint for user shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r--apps/federatedfilesharing/lib/Notifier.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php
index 02a46d65bba..1916390a1ad 100644
--- a/apps/federatedfilesharing/lib/Notifier.php
+++ b/apps/federatedfilesharing/lib/Notifier.php
@@ -86,7 +86,7 @@ class Notifier implements INotifier {
* @throws \InvalidArgumentException
*/
public function prepare(INotification $notification, string $languageCode): INotification {
- if ($notification->getApp() !== 'files_sharing') {
+ if ($notification->getApp() !== 'files_sharing' || $notification->getObjectType() !== 'remote_share') {
// Not my app => throw
throw new \InvalidArgumentException();
}