Skip to content

Commit 1f8dc63

Browse files
committed
[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>
1 parent 08b9ce2 commit 1f8dc63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/updatenotification/lib/Notification/BackgroundJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function sendErrorNotifications($numDays) {
118118
->setSubject('connection_error', ['days' => $numDays]);
119119

120120
foreach ($this->getUsersToNotify() as $uid) {
121-
$notification->setUser($uid);
121+
$notification->setUser((string) $uid);
122122
$this->notificationManager->notify($notification);
123123
}
124124
} catch (\InvalidArgumentException $e) {
@@ -186,7 +186,7 @@ protected function createNotifications($app, $version, $visibleVersion = '') {
186186
}
187187

188188
foreach ($this->getUsersToNotify() as $uid) {
189-
$notification->setUser($uid);
189+
$notification->setUser((string) $uid);
190190
$this->notificationManager->notify($notification);
191191
}
192192
} catch (\InvalidArgumentException $e) {

0 commit comments

Comments
 (0)