diff --git a/app/Services/Hook.php b/app/Services/Hook.php index d4d4649b..2b309515 100644 --- a/app/Services/Hook.php +++ b/app/Services/Hook.php @@ -9,6 +9,7 @@ use Closure; use App\Events; use Notification; use App\Notifications; +use Illuminate\Support\Arr; use Illuminate\Support\Str; class Hook @@ -131,7 +132,7 @@ class Hook public static function sendNotification($users, string $title, $content = ''): void { - Notification::send($users, new Notifications\SiteMessage($title, $content)); + Notification::send(Arr::wrap($users), new Notifications\SiteMessage($title, $content)); } public static function pushMiddleware($middleware)