High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
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.tsindex 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));}}