Skip to content

Commit b9ed5d5

Browse files
committed
fix for favorites-quickaccess: newly added folders dont show up when added to favorites
Signed-off-by: Felix Nüsse <[email protected]>
1 parent 8d38f80 commit b9ed5d5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

apps/files/appinfo/routes.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
'url' => '/api/v1/toggleShowFolder/{key}',
8282
'verb' => 'POST'
8383
],
84+
[
85+
'name' => 'API#getNodeType',
86+
'url' => '/api/v1/quickaccess/get/NodeType',
87+
'verb' => 'GET',
88+
],
8489
]
8590
]
8691
);

apps/files/lib/Controller/ApiController.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,17 @@ public function toggleShowFolder(int $show, string $key) {
292292
return $response;
293293
}
294294

295+
/**
296+
* Get sorting-order for custom sorting
297+
*
298+
* @NoAdminRequired
299+
*
300+
* @param String
301+
* @return String
302+
*/
303+
public function getNodeType($folderpath) {
304+
$node = $this->userFolder->get($folderpath);
305+
return $node->getType();
306+
}
295307

296308
}

0 commit comments

Comments
 (0)