This commit is contained in:
Lain Iwakura 2025-07-12 14:30:16 +03:00
parent 4806829ba7
commit f4c0e08486
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8

View File

@ -92,6 +92,9 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
} else if buffer == "status" {
conn.WriteJSON(map[string]string{"action": "redirect", "url": "/status"})
buffer = ""
} else if buffer == "reddit" {
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://www.reddit.com/r/openbsd/s/zxEkMj0uaW"})
buffer = ""
}
}
}