Skip to content

Commit be32a23

Browse files
committed
fix(Classifier): fix wrong str_contains usage
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 649707e commit be32a23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/Hooks/FileListener.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function handle(Event $event): void {
218218
if ($node instanceof Folder) {
219219
return;
220220
}
221-
if (!str_contains('external', $node->getMountPoint()->getMountType())) {
221+
if (!str_contains($node->getMountPoint()->getMountType(), 'external')) {
222222
return;
223223
}
224224
if (in_array($node->getName(), [...Constants::IGNORE_MARKERS_ALL, ...Constants::IGNORE_MARKERS_IMAGE, ...Constants::IGNORE_MARKERS_AUDIO, ...Constants::IGNORE_MARKERS_VIDEO], true)) {
@@ -295,6 +295,7 @@ public function postDelete(Node $node, bool $recurse = true): void {
295295
* @throws \OCP\Files\InvalidPathException
296296
*/
297297
public function postInsert(Node $node, bool $recurse = true): void {
298+
throw new \Exception('postInsert');
298299
if ($node->getType() === FileInfo::TYPE_FOLDER) {
299300
if (!$recurse) {
300301
return;

0 commit comments

Comments
 (0)