diashow only subscribed to SSE events but never called connectSse(), so a kiosk/projector opening /diashow directly (not via /feed) never opened the EventSource — the showcase display got a one-time /feed snapshot and no live updates, showing "Noch keine Beiträge" forever when turned on before any photos. Open the stream in onMount (idempotent) and close it in onDestroy, mirroring the feed page. Raise the default upload_rate_per_hour from 10 to 100 (migration 015, scoped to installs still on the old default so admin overrides are preserved). Guests routinely upload bursts of 10-20 photos; the old default throttled the first burst. Also update the code fallback and the test-mode reseed. Both verified end-to-end against the docker test stack. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
627 B
SQL
11 lines
627 B
SQL
-- Raise the default per-guest upload rate from 10/hour to 100/hour.
|
|
--
|
|
-- Rationale: guests routinely upload a burst of 10-20 photos at once (phone
|
|
-- multi-select). At the old default of 10/hour a real guest's first burst was
|
|
-- throttled — surfaced by the 2026-07-18 load test. 100/hour comfortably covers
|
|
-- several bursts across an event while still bounding abuse.
|
|
--
|
|
-- Only bump installs still on the old default; an admin who deliberately set a
|
|
-- different value keeps it (migration 005 seeded 10; this UPDATE is scoped to '10').
|
|
UPDATE config SET value = '100' WHERE key = 'upload_rate_per_hour' AND value = '10';
|