From 0ad1a519a40b94b9c932831fc9896e62c47adba9 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 11 Jan 2025 15:29:27 -0600 Subject: [PATCH] Fix prefetch links --- src/share/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/share/index.ts b/src/share/index.ts index 028629f2..5642d168 100644 --- a/src/share/index.ts +++ b/src/share/index.ts @@ -1,11 +1,11 @@ import { Photo, PhotoSetAttributes, PhotoSetCategory } from '@/photo'; -import { absolutePathForPhotoImage } from '@/site/paths'; -import { absolutePathForTagImage } from '@/site/paths'; import { - absolutePathForCamera, - absolutePathForFilmSimulation, + absolutePathForCameraImage, + absolutePathForFilmSimulationImage, + absolutePathForFocalLengthImage, + absolutePathForPhotoImage, + absolutePathForTagImage, } from '@/site/paths'; -import { absolutePathForFocalLength } from '@/site/paths'; export type ShareModalProps = Omit & { photo?: Photo @@ -26,12 +26,12 @@ export const getSharePathFromShareModalProps = ({ return absolutePathForTagImage(tag); } if (camera) { - return absolutePathForCamera(camera); + return absolutePathForCameraImage(camera); } if (simulation) { - return absolutePathForFilmSimulation(simulation); + return absolutePathForFilmSimulationImage(simulation); } if (focal) { - return absolutePathForFocalLength(focal); + return absolutePathForFocalLengthImage(focal); } };