Skip to content

Commit

Permalink
fix: Fix unassigned faces failing to load
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Jan 19, 2024
1 parent 6d17b1d commit bdcda75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dav/Faces/UnassignedFacesHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function getChildren(): array {
$detections = $this->faceDetectionMapper->findRejectedByUserId($this->user->getUID());
$detectionsWithFile = array_filter($detections, fn (FaceDetection $detection): bool => current($this->rootFolder->getUserFolder($this->user->getUID())->getById($detection->getFileId())) !== false);
$this->children = array_map(function (FaceDetection $detection) {
return new UnassignedFacePhoto($this->faceDetectionMapper, $detection, $this->rootFolder->getUserFolder($this->user->getUID()), $this->tagManager, $this->metadataManager, $this->previewManager);
return new UnassignedFacePhoto($this->faceDetectionMapper, $detection, $this->rootFolder->getUserFolder($this->user->getUID()), $this->tagManager, $this->previewManager);
}, $detectionsWithFile);

return $this->children;
Expand Down

0 comments on commit bdcda75

Please sign in to comment.