mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
[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:
parent
08b9ce25e7
commit
1f8dc63681
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