mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
expose remoteId via share api
This commit is contained in:
parent
184e715e84
commit
683e53ecb7
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ use OCP\AppFramework\OCS\OCSNotFoundException;
|
|||
use OCP\AppFramework\OCSController;
|
||||
use OCP\AppFramework\QueryException;
|
||||
use OCP\Constants;
|
||||
use OCP\Files\DavUtil;
|
||||
use OCP\Files\File;
|
||||
use OCP\Files\Folder;
|
||||
use OCP\Files\InvalidPathException;
|
||||
|
|
@ -188,6 +189,7 @@ class ShareAPIController extends OCSController {
|
|||
$result['storage'] = $node->getStorage()->getCache()->getNumericStorageId();
|
||||
$result['item_source'] = $node->getId();
|
||||
$result['file_source'] = $node->getId();
|
||||
$result['file_remoteid_source'] = DavUtil::getDavFileId($node->getId());
|
||||
$result['file_parent'] = $node->getParent()->getId();
|
||||
$result['file_target'] = $share->getTarget();
|
||||
$result['item_size'] = $node->getSize();
|
||||
|
|
|
|||
Loading…
Reference in a new issue