summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/handlers.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index bd14e65..19d26be 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -92,9 +92,8 @@ func (h *Handler) HandleDashboard(w http.ResponseWriter, r *http.Request) {
return
}
- // Generate random background URL (Lorem Picsum - CORS-friendly)
- // Add random seed to get different image each load
- backgroundURL := fmt.Sprintf("https://picsum.photos/1920/1080?random=%d", time.Now().UnixNano())
+ // Background URL: seed from 5-minute time bucket so all sites show the same image simultaneously
+ backgroundURL := fmt.Sprintf("https://picsum.photos/1920/1080?random=%d", time.Now().Unix()/300)
// Wrap dashboard data with active tab for template
data := struct {