瀏覽代碼

Update ApiV1Controller, update markers endpoint

Daniel Supernault 3 年之前
父節點
當前提交
235d9184c6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Http/Controllers/Api/ApiV1Controller.php

+ 3 - 0
app/Http/Controllers/Api/ApiV1Controller.php

@@ -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([]);
 		}