0

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

This commit is contained in:
Gabe Kangas 2023-02-19 17:13:41 -08:00
parent 890a61cd19
commit 3cccfbfc06
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -383,6 +383,11 @@ func Start() error {
http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest)) http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest))
http.HandleFunc("/api/auth/fediverse/verify", fediverseauth.VerifyFediverseOTPRequest) 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 has its own router
activitypub.Start(data.GetDatastore()) activitypub.Start(data.GetDatastore())