1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-16 03:40:33 +02:00

fix(server,web): correctly remove metadata from shared links (#4464)

* wip: strip metadata

* fix: authenticate time buckets

* hide detail panel

* fix tests

* fix lint

* add e2e tests

* chore: open api

* fix web compilation error

* feat: test with asset with gps position

* fix: only import fs.promises.cp

* fix: cleanup mapasset

* fix: format

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jonathan Jogenfors
2023-10-14 03:46:30 +02:00
committed by GitHub
parent 4a9f58bf9b
commit dadcf49eca
39 changed files with 332 additions and 150 deletions

View File

@ -21,7 +21,7 @@
let description = '';
let allowDownload = true;
let allowUpload = false;
let showExif = true;
let showMetadata = true;
let expirationTime = '';
let shouldChangeExpirationTime = false;
let canCopyImagesToClipboard = true;
@ -41,7 +41,7 @@
}
allowUpload = editingLink.allowUpload;
allowDownload = editingLink.allowDownload;
showExif = editingLink.showExif;
showMetadata = editingLink.showMetadata;
albumId = editingLink.album?.id;
assetIds = editingLink.assets.map(({ id }) => id);
@ -66,7 +66,7 @@
allowUpload,
description,
allowDownload,
showExif,
showMetadata,
},
});
sharedLink = `${window.location.origin}/share/${data.key}`;
@ -119,9 +119,9 @@
sharedLinkEditDto: {
description,
expiresAt: shouldChangeExpirationTime ? expirationDate : undefined,
allowUpload: allowUpload,
allowDownload: allowDownload,
showExif: showExif,
allowUpload,
allowDownload,
showMetadata,
},
});
@ -184,7 +184,7 @@
</div>
<div class="my-3">
<SettingSwitch bind:checked={showExif} title={'Show metadata'} />
<SettingSwitch bind:checked={showMetadata} title={'Show metadata'} />
</div>
<div class="my-3">