Merge pull request #310 from the-luap/fix/welcome-message-and-guest-thumbnails

fix: revert /api prefix in adminPhotos.js to avoid double-prefix (#307)
This commit is contained in:
Paul Nothaft
2026-04-13 07:30:28 +02:00
committed by GitHub
+2 -2
View File
@@ -922,9 +922,9 @@ router.get('/:eventId/photos', adminAuth, requirePermission('photos.view'), requ
filename: photo.filename,
original_filename: photo.original_filename || null,
// Use the correct admin photos router base for serving images
url: `/api/admin/photos/${eventId}/photo/${photo.id}`,
url: `/admin/photos/${eventId}/photo/${photo.id}`,
// Always expose a thumbnail URL; backend will generate on demand if missing
thumbnail_url: `/api/admin/photos/${eventId}/thumbnail/${photo.id}`,
thumbnail_url: `/admin/photos/${eventId}/thumbnail/${photo.id}`,
type: photo.type,
category_id: photo.category_id || photo.type,
category_name: photo.pc_name || (photo.type === 'individual' ? 'Individual Photos' : 'Collages'),