summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/FederatedShareProvider.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-28 10:51:44 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-13 12:58:51 +0200
commit4bcb7d88b5cbb8d2c83176062dc76c6213a13c48 (patch)
treec4e7f750cad011dabca80bb1900b9d251821df7c /apps/federatedfilesharing/lib/FederatedShareProvider.php
parentcf7c3209490c60f03fc90b6a71d5d1e00a9d802e (diff)
downloadnextcloud-server-4bcb7d88b5cbb8d2c83176062dc76c6213a13c48.tar.gz
nextcloud-server-4bcb7d88b5cbb8d2c83176062dc76c6213a13c48.zip
Return the token as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 9e8d9fd9e47..bf50206a733 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -983,7 +983,7 @@ class FederatedShareProvider implements IShareProvider {
}
$qb = $this->dbConnection->getQueryBuilder();
- $qb->select('share_with', 'file_source', 'file_target')
+ $qb->select('share_with', 'token', 'file_source', 'file_target')
->from('share')
->where($qb->expr()->eq('share_type', $qb->createNamedParameter(\OCP\Share::SHARE_TYPE_REMOTE)))
->andWhere($qb->expr()->in('file_source', $qb->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)))
@@ -998,6 +998,7 @@ class FederatedShareProvider implements IShareProvider {
$remote[$row['share_with']] = [
'node_id' => $row['file_source'],
'node_path' => $row['file_target'],
+ 'token' => $row['token'],
];
}
$cursor->closeCursor();