From 8fbbd524df7f8a258c599538963286575830e13d Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 27 Jul 2021 12:15:19 +0400 Subject: [PATCH] Swapped to American English spellings refs https://github.com/TryGhost/Ghost/commit/16728a3ef135851a7cc7c7c70c0f1b48f32096b5 --- core/server/adapters/scheduling/index.js | 2 +- core/server/services/settings/index.js | 2 +- core/server/web/site/app.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/server/adapters/scheduling/index.js b/core/server/adapters/scheduling/index.js index bcac94f011..d0d74dbe9b 100644 --- a/core/server/adapters/scheduling/index.js +++ b/core/server/adapters/scheduling/index.js @@ -1,7 +1,7 @@ const postScheduling = require('./post-scheduling'); /** - * @description Initialise all scheduler modules. + * @description Initialize all scheduler modules. * * We currently only support post-scheduling: publish posts/pages when scheduled. * diff --git a/core/server/services/settings/index.js b/core/server/services/settings/index.js index 85119788f7..358cf64290 100644 --- a/core/server/services/settings/index.js +++ b/core/server/services/settings/index.js @@ -24,7 +24,7 @@ function hideValueIfSecret(setting) { module.exports = { /** - * Initialise the cache, used in boot and in testing + * Initialize the cache, used in boot and in testing */ async init() { const settingsCollection = await models.Settings.populateDefaults(); diff --git a/core/server/web/site/app.js b/core/server/web/site/app.js index c0cafdeea8..4e1f987edf 100644 --- a/core/server/web/site/app.js +++ b/core/server/web/site/app.js @@ -119,7 +119,7 @@ module.exports = function setupSiteApp(options = {}) { // Global handling for member session, ensures a member is logged in to the frontend siteApp.use(membersService.middleware.loadMemberSession); - + // /member/.well-known/* serves files (e.g. jwks.json) so it needs to be mounted before the prettyUrl mw to avoid trailing slashes siteApp.use('/members/.well-known', (req, res, next) => membersService.api.middleware.wellKnown(req, res, next)); @@ -195,7 +195,7 @@ module.exports.reload = ({apiVersion}) => { router = siteRoutes({start: true, apiVersion}); Object.setPrototypeOf(SiteRouter, router); - // re-initialse apps (register app routers, because we have re-initialised the site routers) + // re-initialize apps (register app routers, because we have re-initialized the site routers) appService.init(); // connect routers and resources again