From 0a8bcbcd496de4c21339b801f7b18855a89c9cf9 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 8 Mar 2024 08:41:41 -0500 Subject: [PATCH] fix(UpdateNotifications): Handle numeric user ids Closes #44051 Signed-off-by: Josh --- .../lib/BackgroundJob/UpdateAvailableNotifications.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php b/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php index f561f38fdc091..901a36429a25c 100644 --- a/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php +++ b/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php @@ -121,7 +121,7 @@ protected function sendErrorNotifications($numDays) { ->setSubject('connection_error', ['days' => $numDays]); foreach ($this->getUsersToNotify() as $uid) { - $notification->setUser($uid); + $notification->setUser((string) $uid); $this->notificationManager->notify($notification); } } catch (\InvalidArgumentException $e) { @@ -189,7 +189,7 @@ protected function createNotifications($app, $version, $visibleVersion = '') { } foreach ($this->getUsersToNotify() as $uid) { - $notification->setUser($uid); + $notification->setUser((string) $uid); $this->notificationManager->notify($notification); } } catch (\InvalidArgumentException $e) {