diff options
author | Josh <josh.t.richards@gmail.com> | 2024-03-08 14:17:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 14:17:32 -0500 |
commit | 4fedc74034af5874da6e5d5efe0158df8e6de3ce (patch) | |
tree | 778a529dcab578d4b85640de672e165ede51f31b /apps/updatenotification | |
parent | e5b2c0fbfa280713a098a83e7772f3162d930d29 (diff) | |
download | nextcloud-server-4fedc74034af5874da6e5d5efe0158df8e6de3ce.tar.gz nextcloud-server-4fedc74034af5874da6e5d5efe0158df8e6de3ce.zip |
[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>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/lib/Notification/BackgroundJob.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index 08142d5b00b..285903d398b 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -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) { |