pl-fe: drive: allow creating folders

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-11-24 14:28:47 +01:00
parent f087e35f65
commit f0ca9d0014
3 changed files with 33 additions and 2 deletions

View File

@@ -5906,7 +5906,7 @@ class PlApiClient {
const response = await this.request('/api/iceshrimp/drive/folder', {
method: 'POST',
body: { name, parentId },
body: { name, parentId: parentId || null },
});
return v.parse(driveFolderSchema, response.json);