From 46048433b7ec1193a83c382fad32de02fbefd96d Mon Sep 17 00:00:00 2001 From: schrumpel Date: Sat, 24 Feb 2024 22:24:13 +0100 Subject: [PATCH] make curl async --- app/Http/Controllers/VideoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/VideoController.php b/app/Http/Controllers/VideoController.php index f6de504..5ec4092 100644 --- a/app/Http/Controllers/VideoController.php +++ b/app/Http/Controllers/VideoController.php @@ -174,7 +174,7 @@ class VideoController extends Controller "video_id" => $video->id ]); - exec("curl -X POST -H 'Content-Type: application/json' -u '$mauauth' '$mauurl' -d '$payload' "); + exec("curl -X POST -H 'Content-Type: application/json' -u '$mauauth' '$mauurl' -d '$payload' > /dev/null &"); } // if (config('matrix.enabled') && config('matrix.token') && config('matrix.homeserver') && config('matrix.room')) {