From bdcda7556a9a02517b5ab00b90b24074089fe9bf Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 18 Jan 2024 17:22:46 -0800 Subject: [PATCH] fix: Fix unassigned faces failing to load Signed-off-by: Christopher Ng --- lib/Dav/Faces/UnassignedFacesHome.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dav/Faces/UnassignedFacesHome.php b/lib/Dav/Faces/UnassignedFacesHome.php index 546a30a2..b07af8bc 100644 --- a/lib/Dav/Faces/UnassignedFacesHome.php +++ b/lib/Dav/Faces/UnassignedFacesHome.php @@ -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;