mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: show file size on remote shares
Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
parent
a6d1fa1fa6
commit
e4dcec8d5f
5 changed files with 33 additions and 2 deletions
|
|
@ -124,6 +124,7 @@ class RemoteController extends OCSController {
|
|||
$shareData['permissions'] = $mountPointNode->getPermissions();
|
||||
$shareData['type'] = $mountPointNode->getType();
|
||||
$shareData['file_id'] = $mountPointNode->getId();
|
||||
$shareData['item_size'] = $mountPointNode->getSize();
|
||||
|
||||
return $shareData;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ class ExternalShare extends SnowflakeAwareEntity implements \JsonSerializable {
|
|||
'permissions' => null,
|
||||
'mtime' => null,
|
||||
'type' => null,
|
||||
'item_size' => null,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ namespace OCA\Files_Sharing;
|
|||
* share_type: int,
|
||||
* type: string|null,
|
||||
* user: string,
|
||||
* item_size: int|float|null,
|
||||
* }
|
||||
*
|
||||
* @psalm-type Files_SharingSharee = array{
|
||||
|
|
|
|||
|
|
@ -407,7 +407,8 @@
|
|||
"share_token",
|
||||
"share_type",
|
||||
"type",
|
||||
"user"
|
||||
"user",
|
||||
"item_size"
|
||||
],
|
||||
"properties": {
|
||||
"accepted": {
|
||||
|
|
@ -468,6 +469,19 @@
|
|||
},
|
||||
"user": {
|
||||
"type": "string"
|
||||
},
|
||||
"item_size": {
|
||||
"nullable": true,
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
16
openapi.json
16
openapi.json
|
|
@ -2526,7 +2526,8 @@
|
|||
"share_token",
|
||||
"share_type",
|
||||
"type",
|
||||
"user"
|
||||
"user",
|
||||
"item_size"
|
||||
],
|
||||
"properties": {
|
||||
"accepted": {
|
||||
|
|
@ -2587,6 +2588,19 @@
|
|||
},
|
||||
"user": {
|
||||
"type": "string"
|
||||
},
|
||||
"item_size": {
|
||||
"nullable": true,
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue