From 19b13456a5d142df631dc0c1bc7df1df39514b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 18 Oct 2017 15:58:31 +0200 Subject: [PATCH] Notifications: Fix sending notifications to users with numeric uid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Notification/NotificationHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Notification/NotificationHelper.php b/lib/Notification/NotificationHelper.php index ea9aff0be..150c44623 100644 --- a/lib/Notification/NotificationHelper.php +++ b/lib/Notification/NotificationHelper.php @@ -83,7 +83,7 @@ class NotificationHelper { $notification = $this->notificationManager->createNotification(); $notification ->setApp('deck') - ->setUser($user->getUID()) + ->setUser((string)$user->getUID()) ->setObject('card', $card->getId()) ->setSubject('card-overdue', [ $card->getTitle(), $board->getTitle() @@ -132,7 +132,7 @@ class NotificationHelper { $notification = $this->notificationManager->createNotification(); $notification ->setApp('deck') - ->setUser($userId) + ->setUser((string)$userId) ->setDateTime(new DateTime()) ->setObject('board', $board->getId()) ->setSubject('board-shared', [$board->getTitle(), $this->currentUser]);