Skip to content

Commit

Permalink
Merge pull request #1199 from nextcloud/fix/files-scan
Browse files Browse the repository at this point in the history
fix(FileListener): Always react to CacheEntryInsertedEvent
  • Loading branch information
marcelklehr authored Sep 30, 2024
2 parents 16be71f + f8f26fe commit aab0f56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Db/QueueMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function existsQueueItem(string $model, QueueFile $file) : bool {
} catch (DoesNotExistException $e) {
return false;
} catch (MultipleObjectsReturnedException $e) {
return false;
return true;
} catch (Exception $e) {
return false;
}
Expand Down
3 changes: 0 additions & 3 deletions lib/Hooks/FileListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ public function handle(Event $event): void {
if ($node instanceof Folder) {
return;
}
if (!str_contains($node->getMountPoint()->getMountType(), 'external')) {
return;
}
if (in_array($node->getName(), [...Constants::IGNORE_MARKERS_ALL, ...Constants::IGNORE_MARKERS_IMAGE, ...Constants::IGNORE_MARKERS_AUDIO, ...Constants::IGNORE_MARKERS_VIDEO], true)) {
$this->resetIgnoreCache($node);
$this->postDelete($node->getParent());
Expand Down

0 comments on commit aab0f56

Please sign in to comment.