Disable authorize_endpoint if federation is disabled
This commit is contained in:
parent
763f98b517
commit
5da6b4fd84
1 changed files with 3 additions and 1 deletions
|
@ -1267,7 +1267,9 @@ func RegisterRoutes(m *web.Route) {
|
|||
m.Get("/new", user.NewAvailable)
|
||||
}, reqSignIn)
|
||||
|
||||
m.Get("/authorize_interaction", activitypub.AuthorizeInteraction)
|
||||
if setting.Federation.Enabled {
|
||||
m.Get("/authorize_interaction", activitypub.AuthorizeInteraction)
|
||||
}
|
||||
|
||||
if setting.API.EnableSwagger {
|
||||
m.Get("/swagger.v1.json", SwaggerV1Json)
|
||||
|
|
Loading…
Add table
Reference in a new issue