From 1194e59f434147980a8413ea6c78a3366c997132 Mon Sep 17 00:00:00 2001 From: sajalverma17 Date: Mon, 13 Jul 2026 14:00:18 +0200 Subject: [PATCH] feat(#153): serve single video shares as direct links --- app/src/immich.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/immich.ts b/app/src/immich.ts index 0975305..11c06a6 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -201,8 +201,8 @@ export async function handleShareRequest (req: IncomingShareRequest, res: Respon // This is an individual item (not a gallery) log('Serving link ' + req.key) const asset = link.assets[0] - if (asset.type === AssetType.image && !getConfigOption('ipp.gallery.singleImage') && !req.password) { - // For photos, output the image directly unless configured to show a gallery, + if ((asset.type === AssetType.image || asset.type === AssetType.video) && !getConfigOption('ipp.gallery.singleImage') && !req.password) { + // For photos and videos, output them directly unless configured to show a gallery, // or unless it's a password-protected link await assetBuffer(req, res, link.assets[0], ImageSize.preview) } else {