diff --git a/server/src/services/notification.service.ts b/server/src/services/notification.service.ts index 91a043d405..8a1673b719 100644 --- a/server/src/services/notification.service.ts +++ b/server/src/services/notification.service.ts @@ -161,7 +161,24 @@ export class NotificationService extends BaseService { const [asset] = await this.assetRepository.getByIdsWithAllRelationsButStacks([assetId]); if (asset) { - this.eventRepository.clientSend('on_asset_update', userId, mapAsset(asset)); + // need to specify authDto to this mapAsset request, because it tries to prevent + // leaking information PR#7580 which expects a userId in the auth options object + this.eventRepository.clientSend( + 'on_asset_update', + userId, + mapAsset(asset, { + auth: { + user: { + id: userId, + isAdmin: false, + name: '', + email: '', + quotaUsageInBytes: 0, + quotaSizeInBytes: null, + }, + }, + }), + ); } } diff --git a/web/src/lib/components/timeline/actions/ArchiveAction.svelte b/web/src/lib/components/timeline/actions/ArchiveAction.svelte index 05ef9c99ff..de778981ca 100644 --- a/web/src/lib/components/timeline/actions/ArchiveAction.svelte +++ b/web/src/lib/components/timeline/actions/ArchiveAction.svelte @@ -1,5 +1,6 @@