0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
Kevin Ansfield 8a17e723a1 Moved usage of preview options from globalTemplateOptions to localTemplateOptions
refs https://github.com/TryGhost/Team/issues/1097

globalTemplateOptions are supposed to be static with localTemplateOptions being merged in per-request, however the per-request preview data was being extracted and set in the global options. Comments suggest that the global data should be static and eventually updated via other means, the usage of the request object to get per-request preview data is working against that.

- adjusted the preview handler to return an object rather than changing properties by reference on a passed in object
- moved preview data fetching out of `getSiteData()` used in `updateGlobalTemplateOptions()` and into `updateLocalTemplateOptions()` so that we're not relying on the request object in `updateGlobalTemplateOptions()`
2021-09-30 12:12:55 +01:00
..
client@1e0d0a066d Updated Admin to v4.16.0 2021-09-23 16:04:56 +01:00
frontend Moved usage of preview options from globalTemplateOptions to localTemplateOptions 2021-09-30 12:12:55 +01:00
server Refactored ensure settings module into a class with DI 2021-09-29 20:56:55 +02:00
shared Added portal redirect for first version of offers 2021-09-28 18:34:15 +05:30
app.js
boot.js Moved routing setting hash calculation to backend 2021-09-28 04:59:41 +13:00
bridge.js Removed unnecessary error parameter in bridge 2021-09-23 18:39:43 +02:00