summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index f717dadf576..2ed5db5f00f 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -357,7 +357,7 @@ class ShareController extends Controller {
// Subset of files is downloaded
foreach ($files_list as $file) {
$subNode = $node->get($file);
- $nodePath = $userFolder->getRelativePath($node->getPath());
+ $nodePath = $userFolder->getRelativePath($subNode->getPath());
if ($subNode instanceof \OCP\Files\File) {
$this->activityManager->publishActivity(
'files_sharing', Activity::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED, [$nodePath], '', [],