[stable28] fix(UpdateNotifications): Handle numeric user ids

manual backport of #44093 to fix #44051 for <=v28

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2024-03-08 14:17:32 -05:00 committed by GitHub
parent e5b2c0fbfa
commit 4fedc74034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,7 @@ class BackgroundJob extends TimedJob {
->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 @@ class BackgroundJob extends TimedJob {
}
foreach ($this->getUsersToNotify() as $uid) {
$notification->setUser($uid);
$notification->setUser((string) $uid);
$this->notificationManager->notify($notification);
}
} catch (\InvalidArgumentException $e) {