fix(files_sharing): allow strict validation of shares

API response sometimes includes `null` for unset, but unset
(`undefined`) is something different than `null`.
So if `null` is passed we mean `undefined` instead.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-02-27 16:53:09 +01:00
parent 5fa368c41c
commit 882d8324e8

View file

@ -93,7 +93,7 @@ async function ocsEntryToNode(ocsEntry: any): Promise<Folder | File | null> {
owner: ocsEntry?.uid_owner,
mime: ocsEntry?.mimetype || 'application/octet-stream',
mtime,
size: ocsEntry?.item_size,
size: ocsEntry?.item_size ?? undefined,
permissions: ocsEntry?.item_permissions || ocsEntry?.permissions,
root: getRootPath(),
attributes: {