From e96c9e0e4a402277a9f18470c77503dd914c6de4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 22 Aug 2019 03:17:17 +0200 Subject: Add the notifier and the API endpoint for user shares Signed-off-by: Joas Schilling --- apps/federatedfilesharing/lib/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/federatedfilesharing') 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(); } -- cgit v1.2.3