Fix lens photo share url

This commit is contained in:
Sam Becker 2025-05-02 18:51:36 -05:00
parent ec4ba74829
commit ed9aad1d39
2 changed files with 12 additions and 5 deletions

View File

@ -445,9 +445,15 @@ export default function PhotoLarge({
<ShareButton
tooltip="Share Photo"
photo={photo}
tag={shouldShareTag ? primaryTag : undefined}
camera={shouldShareCamera ? camera : undefined}
lens={shouldShareLens ? lens : undefined}
tag={shouldShareTag
? primaryTag
: undefined}
camera={shouldShareCamera
? camera
: undefined}
lens={shouldShareLens
? lens
: undefined}
film={shouldShareFilm
? photo.film
: undefined}

View File

@ -28,10 +28,11 @@ export default function ShareModals() {
if (photo) {
return <PhotoShareModal {...{
photo,
tag,
camera,
film,
lens,
tag,
recipe,
film,
focal,
}} />;
} else if (photos) {