mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 09:08:22 -04:00
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:
parent
5fa368c41c
commit
882d8324e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue