mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
refs #5091 - makes post context explicit - data.post must be set, rather than post being the default - uses channelConfig to determine the context for a channel (the channel name) rather than basing it off of the URL - updates tests to setup the contexts more clearly, the outcome has not changed Since #6469 req has channelConfig attached to it. We can use req.channelConfig to determine what the context should be for a channel (the channel name) This allows us to remove the hardcoded URLs, and means that custom channels will automatically get their own context. Coupled with removing 'post' from being a default/fallthrough, to being explicitly set, this will reduce potential context errors, as we start to extend the frontend capabilities |
||
---|---|---|
.. | ||
controllers/frontend | ||
metadata | ||
middleware | ||
models_plugins | ||
server_helpers | ||
api_utils_spec.js | ||
apps_filters_spec.js | ||
apps_spec.js | ||
config_spec.js | ||
error_handling_spec.js | ||
exporter_spec.js | ||
filters_spec.js | ||
ghost_url_spec.js | ||
importer_spec.js | ||
mail_spec.js | ||
migration_fixture_spec.js | ||
migration_spec.js | ||
permissions_spec.js | ||
rss_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
server_utils_spec.js | ||
showdown_client_integrated_spec.js | ||
sitemap_spec.js | ||
storage_local-file-store_spec.js | ||
utils_pipeline_spec.js | ||
versioning_spec.js | ||
xmlrpc_spec.js |