From 4fedc74034af5874da6e5d5efe0158df8e6de3ce Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 8 Mar 2024 14:17:32 -0500 Subject: [PATCH] [stable28] fix(UpdateNotifications): Handle numeric user ids manual backport of #44093 to fix #44051 for <=v28 Signed-off-by: Josh --- apps/updatenotification/lib/Notification/BackgroundJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index 08142d5b00bcc..285903d398bf2 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -118,7 +118,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) { @@ -186,7 +186,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) {