From a9cbdbf280427841dec687f26127803bfd316572 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 24 Jun 2025 02:01:28 +0100 Subject: [PATCH] fix: remove invalid isPhotography check for albums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove check for non-existent isPhotography field on Album model - Albums now display correctly when published - Fixes "Content not found" error for published albums 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/routes/photos/[slug]/+page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/photos/[slug]/+page.ts b/src/routes/photos/[slug]/+page.ts index d72ba79..1ceec70 100644 --- a/src/routes/photos/[slug]/+page.ts +++ b/src/routes/photos/[slug]/+page.ts @@ -7,8 +7,8 @@ export const load: PageLoad = async ({ params, fetch }) => { if (albumResponse.ok) { const album = await albumResponse.json() - // Check if this is a photography album and published - if (album.isPhotography && album.status === 'published') { + // Check if album is published + if (album.status === 'published') { return { type: 'album' as const, album,