diff options
author | Robin Appelman <robin@icewind.nl> | 2022-01-13 19:28:43 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-01-13 19:30:27 +0300 |
commit | 18817b79ccddb65681ba1e1728cabcf885f80de9 (patch) | |
tree | f8dde236cb05d642bbbcb307ef13a2552383c8c3 | |
parent | 2009a54a739b4797a31e41dbe99cd29cab66797b (diff) |
dont add activity for files in the hidden folderhidden-folder
-rwxr-xr-x | lib/FilesHooks.php | 5 |
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 ... |