diff --git a/lib/private/Repair/RemoveLinkShares.php b/lib/private/Repair/RemoveLinkShares.php index 66c850be2af07..b44a27773ce51 100644 --- a/lib/private/Repair/RemoveLinkShares.php +++ b/lib/private/Repair/RemoveLinkShares.php @@ -196,7 +196,7 @@ private function sendNotification() { $users = array_keys($this->userToNotify); foreach ($users as $user) { - $notification->setUser($user); + $notification->setUser((string) $user); $this->notificationManager->notify($notification); } }