fix: remove invalid isPhotography check for albums

- 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 <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-06-24 02:01:28 +01:00
parent 7a3cde0575
commit a9cbdbf280

View file

@ -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,