Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Redirect /embed/chat to /embed/chat/readonly. Closes #2716

Gabe Kangasbd70fabf2d88
diff --git a/router/router.go b/router/router.go
index 7dd86a4cab..4a564bc58e 100644
--- a/router/router.go
+++ b/router/router.go
@@ -383,6 +383,11 @@ func Start() error {
http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest))
http.HandleFunc("/api/auth/fediverse/verify", fediverseauth.VerifyFediverseOTPRequest)
+ // Redirect /embed/chat
+ http.HandleFunc("/embed/chat", func(w http.ResponseWriter, r *http.Request) {
+ http.Redirect(w, r, "/embed/chat/readonly", http.StatusTemporaryRedirect)
+ })
+
// ActivityPub has its own router
activitypub.Start(data.GetDatastore())