diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-11-18 20:11:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-18 20:11:20 +0100 |
commit | ccc0a5e0d586c8df25edb1a0f3cef20860d71e4f (patch) | |
tree | 96ffd796964b18c194b6696f653f1d0d2d3f70f5 /apps/federatedfilesharing | |
parent | 5320f08cd2eab3926104a314fb76b2de222d1d7b (diff) | |
parent | e16321368f27f3b9534b3fb835fbe6c6fc85077e (diff) | |
download | nextcloud-server-ccc0a5e0d586c8df25edb1a0f3cef20860d71e4f.tar.gz nextcloud-server-ccc0a5e0d586c8df25edb1a0f3cef20860d71e4f.zip |
Merge pull request #16828 from nextcloud/feature/noid/accept-incoming-shares
🔗☑️ Accept all incoming shares
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifier.php | 2 |
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(); } |