feat: add region querying to pre-fetched html (#8077)

This commit is contained in:
Kyle Carberry
2023-06-19 11:23:26 -05:00
committed by GitHub
parent e083cbca6a
commit f444100aa6
5 changed files with 86 additions and 25 deletions

View File

@ -67,6 +67,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
api.AGPL.Options.SetUserGroups = api.setUserGroups
api.AGPL.SiteHandler.AppearanceFetcher = api.fetchAppearanceConfig
api.AGPL.SiteHandler.RegionsFetcher = api.fetchRegions
oauthConfigs := &httpmw.OAuth2Configs{
Github: options.GithubOAuth2Config,