diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-14 16:55:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-20 12:14:59 +0200 |
commit | b35d2fd8f2e96f56951e33d27d07cb213375e46b (patch) | |
tree | 53759a73e85ec2b582872fd0ba6d3a81e1fb5218 /lib/private/Notification/Manager.php | |
parent | 20986488505616654177da1f861238f0232656fa (diff) | |
download | nextcloud-server-b35d2fd8f2e96f56951e33d27d07cb213375e46b.tar.gz nextcloud-server-b35d2fd8f2e96f56951e33d27d07cb213375e46b.zip |
Allow rich object subjects for Notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Notification/Manager.php')
-rw-r--r-- | lib/private/Notification/Manager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index ec831cf9793..4b57db4bac9 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -24,6 +24,7 @@ namespace OC\Notification; +use OC\RichObjectStrings\Validator; use OCP\Notification\IApp; use OCP\Notification\IManager; use OCP\Notification\INotification; @@ -149,7 +150,9 @@ class Manager implements IManager { * @since 8.2.0 */ public function createNotification() { - return new Notification(); + return new Notification( + new Validator() + ); } /** |