0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/server/services
Kevin Ansfield 59a6f040d2 Fixed custom theme settings being clobbered with duplicate-named themes
refs https://github.com/TryGhost/Team/issues/1149

Ghost allows different themes to have the same `name` value in `package.json` but gives them a custom name based on the zip file used to upload it. The custom theme settings service however was always using the package.json name meaning that when syncing a theme with a duplicate name it was overwriting the settings for all other themes.

- bumped `@tryghost/custom-theme-settings-service` which changes the `.activateTheme()` signature to accept a theme name as the first argument
- updated our calls to `.activateTheme()` to pass Ghost's known theme name as the first argument so we're always syncing with the correct `theme` field value in the `custom_theme_settings` table
2021-10-20 13:25:02 +01:00
..
adapter-manager Moved config from server to shared () 2020-05-27 18:47:53 +01:00
auth Replaced i18n.t w/ tpl helper in core/server/services/auth () 2021-10-06 09:42:44 +01:00
bulk-email Replaced i18n.t with tpl in core/server/services/bulk-email and core/server/services/permissions () 2021-10-12 14:46:35 +01:00
email-analytics Swapped to American English spellings 2021-08-09 13:35:01 +04:00
integrations Removed method complexity in integrations API controller 2021-09-16 14:23:48 +03:00
invitations Replaced i18n with tpl in accept.js () 2021-10-08 15:21:22 +01:00
invites Refactored tpl to never be used in DI 2021-10-11 15:19:54 +01:00
jobs Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
mail Replaced i18n with tpl in GhostMailer.js () 2021-10-12 09:10:50 +01:00
mega replaced i18n with tpl in mega of core services () 2021-10-12 08:29:34 +01:00
members Passed OfferRedemption to members 2021-10-15 16:56:04 +02:00
notifications Simplified Notification's service constructor 2021-10-11 16:04:48 +02:00
offers Passed OfferRedemptionModel to offers 2021-10-15 16:56:04 +02:00
permissions Replaced i18n.t with tpl in core/server/services/bulk-email and core/server/services/permissions () 2021-10-12 14:46:35 +01:00
posts 🐛 Fixed immediately sent email when scheduling email-only post 2021-10-05 16:42:29 +02:00
public-config Added a feature flag to the oauth login feature 2021-07-20 23:16:49 +02:00
redirects Added validation to redirects config 2021-10-04 18:32:40 +02:00
route-settings Moved URL service to backend 2021-10-19 07:29:09 +13:00
settings Refactored secret settings util functions 2021-09-21 23:05:57 +12:00
stripe Moved StripeAPIService to its own service 2021-10-04 19:28:19 +02:00
themes Fixed custom theme settings being clobbered with duplicate-named themes 2021-10-20 13:25:02 +01:00
url Moved URL service to backend 2021-10-19 07:29:09 +13:00
webhooks Removed method complexity in webhooks API controller 2021-09-17 10:11:23 +03:00
custom-theme-settings.js Added API tests for custom theme settings () 2021-10-08 16:18:49 +01:00
limits.js Fixed error when hostLimits are undefined 2021-07-23 20:46:52 +04:00
oembed.js Refactored tpl to never be used in DI 2021-10-11 15:19:54 +01:00
slack.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
users.js 🔒 Added a "reset all passwords" feature () 2021-06-23 14:54:28 +02:00
xmlrpc.js Moved URL service to backend 2021-10-19 07:29:09 +13:00