Get correct path for activity downloads
This commit is contained in:
parent
894a88ca51
commit
9467859e42
|
@ -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], '', [],
|
||||
|
|
Loading…
Reference in New Issue