Merge pull request #44095 from nextcloud/fix/updatenotifications/numeric-ids-v28-and-lower

[stable28] fix(UpdateNotifications): Handle numeric user ids
This commit is contained in:
Joas Schilling 2024-03-08 23:14:43 +01:00 committed by GitHub
commit 996f3593ac
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) {