add description when metadata is shared
This commit is contained in:
+2
-1
@@ -121,7 +121,8 @@ class Render {
|
||||
previewUrl: immich.photoUrl(share.key, asset.id, ImageSize.preview),
|
||||
downloadUrl,
|
||||
thumbnailUrl: baseUrl + immich.photoUrl(share.key, asset.id, ImageSize.thumbnail),
|
||||
video
|
||||
video,
|
||||
description: asset?.exifInfo?.description ?? ''
|
||||
})
|
||||
}
|
||||
res.render('gallery', {
|
||||
|
||||
@@ -5,6 +5,10 @@ export enum AssetType {
|
||||
video = 'VIDEO'
|
||||
}
|
||||
|
||||
export interface ExifInfo {
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface Asset {
|
||||
id: string;
|
||||
key: string;
|
||||
@@ -13,6 +17,7 @@ export interface Asset {
|
||||
fileCreatedAt?: string; // May not exist - see https://github.com/alangrainger/immich-public-proxy/issues/61
|
||||
type: AssetType;
|
||||
isTrashed: boolean;
|
||||
exifInfo?: ExifInfo;
|
||||
}
|
||||
|
||||
export interface SharedLink {
|
||||
|
||||
Reference in New Issue
Block a user