Update ApiV1Controller, update markers endpoint

pull/3333/head
Daniel Supernault 2022-03-24 23:51:44 -06:00
rodzic 93a9769e47
commit 235d9184c6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -2754,6 +2754,9 @@ class ApiV1Controller extends Controller
{
abort_if(!$request->user(), 403);
$type = $request->input('timeline');
if(is_array($type)) {
$type = $type[0];
}
if(!$type || !in_array($type, ['home', 'notifications'])) {
return $this->json([]);
}