mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
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:
commit
996f3593ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue