Skip to content

Commit

Permalink
Merge pull request #1201 from nextcloud/backport/1199/stable8
Browse files Browse the repository at this point in the history
[stable8] fix(FileListener): Always react to CacheEntryInsertedEvent
  • Loading branch information
marcelklehr authored Sep 30, 2024
2 parents 4b4704a + 1a130a9 commit 82643c9
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 82643c9

Please sign in to comment.