diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-28 17:06:26 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-13 12:58:51 +0200 |
commit | 3c1365c0d12a626e8c2b8e1ab35b105f4b88ad2e (patch) | |
tree | 23935b8b8c0df29875cdd1c6d2133bf399a2b724 /apps/federatedfilesharing/lib/FederatedShareProvider.php | |
parent | 4bcb7d88b5cbb8d2c83176062dc76c6213a13c48 (diff) | |
download | nextcloud-server-3c1365c0d12a626e8c2b8e1ab35b105f4b88ad2e.tar.gz nextcloud-server-3c1365c0d12a626e8c2b8e1ab35b105f4b88ad2e.zip |
Fix returned paths for remote shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index bf50206a733..617db4a45ac 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', 'token', 'file_source', 'file_target') + $qb->select('share_with', 'token', 'file_source') ->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))) @@ -997,7 +997,6 @@ class FederatedShareProvider implements IShareProvider { while ($row = $cursor->fetch()) { $remote[$row['share_with']] = [ 'node_id' => $row['file_source'], - 'node_path' => $row['file_target'], 'token' => $row['token'], ]; } |