Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/activity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-01-13 19:28:43 +0300
committerRobin Appelman <robin@icewind.nl>2022-01-13 19:30:27 +0300
commit18817b79ccddb65681ba1e1728cabcf885f80de9 (patch)
treef8dde236cb05d642bbbcb307ef13a2552383c8c3
parent2009a54a739b4797a31e41dbe99cd29cab66797b (diff)
dont add activity for files in the hidden folderhidden-folder
-rwxr-xr-xlib/FilesHooks.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php
index db42a766..f0ec671f 100755
--- a/lib/FilesHooks.php
+++ b/lib/FilesHooks.php
@@ -221,6 +221,11 @@ class FilesHooks {
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 ...