Skip to content

High performance self-hosted photo and video management solution.

fix: skip locked photos during duplicate scan. (#19105)

Michael Andersonde756d949724
diff --git a/server/src/services/duplicate.service.ts b/server/src/services/duplicate.service.ts
index 296c30bc51..99674d4c36 100644
--- a/server/src/services/duplicate.service.ts
+++ b/server/src/services/duplicate.service.ts
@@ -78,6 +78,11 @@ export class DuplicateService extends BaseService {
return JobStatus.SKIPPED;
}
+ if (asset.visibility === AssetVisibility.LOCKED) {
+ this.logger.debug(`Asset ${id} is locked, skipping`);
+ return JobStatus.SKIPPED;
+ }
+
if (!asset.embedding) {
this.logger.debug(`Asset ${id} is missing embedding`);
return JobStatus.FAILED;