Get correct path for activity downloads

This commit is contained in:
Roeland Jago Douma 2016-01-20 09:04:22 +01:00
parent 894a88ca51
commit 9467859e42
1 changed files with 1 additions and 1 deletions

View File

@ -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], '', [],