Explorar el Código

Update StatusController

Daniel Supernault hace 6 años
padre
commit
564fd93290
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/StatusController.php

+ 1 - 1
app/Http/Controllers/StatusController.php

@@ -279,7 +279,7 @@ class StatusController extends Controller
         $photos = 0;
         $videos = 0;
         foreach($mimes as $mime) {
-            if(in_array($mime, $allowed) == false) {
+            if(in_array($mime, $allowed) == false && $mime !== 'video/mp4') {
                 continue;
             }
             if(str_contains($mime, 'image/')) {