diff --git a/routers/web/web.go b/routers/web/web.go index 5185b1b23b..5a3a60ac44 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -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)