diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index db42a7660..f0ec671fc 100755 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -221,6 +221,11 @@ protected function addNotificationsForFileAction($filePath, $activityType, $subj return; } + // don't add activities for files in the hidden folder + if (Filesystem::isPathHidden($filePath)) { + return; + } + [$filePath, $uidOwner, $fileId] = $this->getSourcePathAndOwner($filePath); if ($fileId === 0) { // Could not find the file for the owner ...