Size motion photo clip to the still and make the toggle sticky #286

This commit is contained in:
Alan Grainger
2026-09-17 21:45:55 +12:00
parent c3dccf4d25
commit 16ba140766
10 changed files with 82 additions and 70 deletions
+3 -7
View File
@@ -80,13 +80,9 @@ function expiryDateLocale (): string | undefined {
}
/**
* Find the shared still that a motion photo (Live Photo) clip belongs to.
*
* The clip is a separate, hidden Immich asset: it never appears in the share's
* own asset list, but Immich authorises it under the same shared-link key
* (`checkSharedLinkAccess` whitelists each shared asset's `livePhotoVideoId`).
* Matching against the share's own assets is what keeps the set of ids IPP will
* serve bounded by the share's contents.
* Find the shared still that a motion photo (Live Photo) clip belongs to. The
* clip is a hidden asset that Immich authorises under the same share key;
* requiring a shared still to point at it keeps the ids IPP serves bounded.
*/
export function findMotionPhotoStill (share: SharedLink, clipId: string): Asset | undefined {
if (!clipId) return undefined