mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update ApiV1Controller, update markers endpoint
This commit is contained in:
parent
93a9769e47
commit
235d9184c6
1 changed files with 3 additions and 0 deletions
|
@ -2754,6 +2754,9 @@ class ApiV1Controller extends Controller
|
||||||
{
|
{
|
||||||
abort_if(!$request->user(), 403);
|
abort_if(!$request->user(), 403);
|
||||||
$type = $request->input('timeline');
|
$type = $request->input('timeline');
|
||||||
|
if(is_array($type)) {
|
||||||
|
$type = $type[0];
|
||||||
|
}
|
||||||
if(!$type || !in_array($type, ['home', 'notifications'])) {
|
if(!$type || !in_array($type, ['home', 'notifications'])) {
|
||||||
return $this->json([]);
|
return $this->json([]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue