Skip to content

High performance self-hosted photo and video management solution.

fix(server): send upload_success notification only for non hidden assets (#5471)

shenlong812e67d55dfa
diff --git a/server/src/domain/job/job.service.ts b/server/src/domain/job/job.service.ts
index 4735eb6b59..9751631175 100644
--- a/server/src/domain/job/job.service.ts
+++ b/server/src/domain/job/job.service.ts
@@ -223,7 +223,9 @@ export class JobService {
}
const [asset] = await this.assetRepository.getByIds([item.data.id]);
- if (asset) {
+
+ // Only live-photo motion part will be marked as not visible immediately on upload. Skip notifying clients
+ if (asset && asset.isVisible) {
this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset));
}
}