From 9346718cc22277b10282a7608c11ae6acf23d809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 11 Jun 2019 09:52:04 +0200 Subject: [PATCH] Fix userid casting in notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/private/Notification/Notification.php | 5 +++-- lib/private/Repair/RemoveLinkShares.php | 2 +- lib/public/Notification/INotification.php | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php index ef7cdb5d44..ff3826047d 100644 --- a/lib/private/Notification/Notification.php +++ b/lib/private/Notification/Notification.php @@ -1,4 +1,5 @@ userToNotify); foreach ($users as $user) { - $notification->setUser($user); + $notification->setUser((string) $user); $this->notificationManager->notify($notification); } } diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index 29f2a0e794..f71d0c53cc 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -1,4 +1,5 @@