1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix: people in shared assets (#3431)

* fix: people in shared assets

* use empty array
This commit is contained in:
martin 2023-07-27 04:14:50 +02:00 committed by GitHub
parent f3edf43158
commit a21112e4ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,12 +207,13 @@ export class AssetService {
const allowExif = this.getExifPermission(authUser);
const asset = await this._assetRepository.getById(assetId);
const data = allowExif ? mapAsset(asset) : mapAssetWithoutExif(asset);
if (allowExif) {
return mapAsset(asset);
} else {
return mapAssetWithoutExif(asset);
if (data.ownerId !== authUser.id) {
data.people = [];
}
return data;
}
public async updateAsset(authUser: AuthUserDto, assetId: string, dto: UpdateAssetDto): Promise<AssetResponseDto> {