ghost 5.92.0 → 5.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.94.0.tgz +0 -0
  2. package/components/tryghost-adapter-cache-redis-5.94.0.tgz +0 -0
  3. package/components/{tryghost-adapter-manager-5.92.0.tgz → tryghost-adapter-manager-5.94.0.tgz} +0 -0
  4. package/components/{tryghost-announcement-bar-settings-5.92.0.tgz → tryghost-announcement-bar-settings-5.94.0.tgz} +0 -0
  5. package/components/{tryghost-api-framework-5.92.0.tgz → tryghost-api-framework-5.94.0.tgz} +0 -0
  6. package/components/{tryghost-api-version-compatibility-service-5.92.0.tgz → tryghost-api-version-compatibility-service-5.94.0.tgz} +0 -0
  7. package/components/tryghost-audience-feedback-5.94.0.tgz +0 -0
  8. package/components/tryghost-bookshelf-repository-5.94.0.tgz +0 -0
  9. package/components/{tryghost-bootstrap-socket-5.92.0.tgz → tryghost-bootstrap-socket-5.94.0.tgz} +0 -0
  10. package/components/{tryghost-collections-5.92.0.tgz → tryghost-collections-5.94.0.tgz} +0 -0
  11. package/components/{tryghost-constants-5.92.0.tgz → tryghost-constants-5.94.0.tgz} +0 -0
  12. package/components/{tryghost-custom-theme-settings-service-5.92.0.tgz → tryghost-custom-theme-settings-service-5.94.0.tgz} +0 -0
  13. package/components/{tryghost-data-generator-5.92.0.tgz → tryghost-data-generator-5.94.0.tgz} +0 -0
  14. package/components/{tryghost-domain-events-5.92.0.tgz → tryghost-domain-events-5.94.0.tgz} +0 -0
  15. package/components/tryghost-donations-5.94.0.tgz +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.94.0.tgz +0 -0
  17. package/components/tryghost-email-addresses-5.94.0.tgz +0 -0
  18. package/components/tryghost-email-analytics-provider-mailgun-5.94.0.tgz +0 -0
  19. package/components/tryghost-email-analytics-service-5.94.0.tgz +0 -0
  20. package/components/{tryghost-email-content-generator-5.92.0.tgz → tryghost-email-content-generator-5.94.0.tgz} +0 -0
  21. package/components/{tryghost-email-events-5.92.0.tgz → tryghost-email-events-5.94.0.tgz} +0 -0
  22. package/components/tryghost-email-service-5.94.0.tgz +0 -0
  23. package/components/tryghost-email-suppression-list-5.94.0.tgz +0 -0
  24. package/components/tryghost-express-dynamic-redirects-5.94.0.tgz +0 -0
  25. package/components/{tryghost-external-media-inliner-5.92.0.tgz → tryghost-external-media-inliner-5.94.0.tgz} +0 -0
  26. package/components/tryghost-extract-api-key-5.94.0.tgz +0 -0
  27. package/components/tryghost-ghost-5.94.0.tgz +0 -0
  28. package/components/tryghost-html-to-plaintext-5.94.0.tgz +0 -0
  29. package/components/{tryghost-i18n-5.92.0.tgz → tryghost-i18n-5.94.0.tgz} +0 -0
  30. package/components/{tryghost-importer-handler-content-files-5.92.0.tgz → tryghost-importer-handler-content-files-5.94.0.tgz} +0 -0
  31. package/components/{tryghost-importer-revue-5.92.0.tgz → tryghost-importer-revue-5.94.0.tgz} +0 -0
  32. package/components/tryghost-in-memory-repository-5.94.0.tgz +0 -0
  33. package/components/{tryghost-job-manager-5.92.0.tgz → tryghost-job-manager-5.94.0.tgz} +0 -0
  34. package/components/{tryghost-link-redirects-5.92.0.tgz → tryghost-link-redirects-5.94.0.tgz} +0 -0
  35. package/components/tryghost-link-replacer-5.94.0.tgz +0 -0
  36. package/components/{tryghost-link-tracking-5.92.0.tgz → tryghost-link-tracking-5.94.0.tgz} +0 -0
  37. package/components/{tryghost-magic-link-5.92.0.tgz → tryghost-magic-link-5.94.0.tgz} +0 -0
  38. package/components/{tryghost-mail-events-5.92.0.tgz → tryghost-mail-events-5.94.0.tgz} +0 -0
  39. package/components/tryghost-mailgun-client-5.94.0.tgz +0 -0
  40. package/components/{tryghost-member-attribution-5.92.0.tgz → tryghost-member-attribution-5.94.0.tgz} +0 -0
  41. package/components/{tryghost-member-events-5.92.0.tgz → tryghost-member-events-5.94.0.tgz} +0 -0
  42. package/components/{tryghost-members-api-5.92.0.tgz → tryghost-members-api-5.94.0.tgz} +0 -0
  43. package/components/{tryghost-members-csv-5.92.0.tgz → tryghost-members-csv-5.94.0.tgz} +0 -0
  44. package/components/{tryghost-members-events-service-5.92.0.tgz → tryghost-members-events-service-5.94.0.tgz} +0 -0
  45. package/components/{tryghost-members-importer-5.92.0.tgz → tryghost-members-importer-5.94.0.tgz} +0 -0
  46. package/components/tryghost-members-offers-5.94.0.tgz +0 -0
  47. package/components/tryghost-members-payments-5.94.0.tgz +0 -0
  48. package/components/{tryghost-members-ssr-5.92.0.tgz → tryghost-members-ssr-5.94.0.tgz} +0 -0
  49. package/components/{tryghost-members-stripe-service-5.92.0.tgz → tryghost-members-stripe-service-5.94.0.tgz} +0 -0
  50. package/components/{tryghost-mentions-email-report-5.92.0.tgz → tryghost-mentions-email-report-5.94.0.tgz} +0 -0
  51. package/components/tryghost-milestones-5.94.0.tgz +0 -0
  52. package/components/tryghost-minifier-5.94.0.tgz +0 -0
  53. package/components/tryghost-model-to-domain-event-interceptor-5.94.0.tgz +0 -0
  54. package/components/tryghost-mw-api-version-mismatch-5.94.0.tgz +0 -0
  55. package/components/{tryghost-mw-cache-control-5.92.0.tgz → tryghost-mw-cache-control-5.94.0.tgz} +0 -0
  56. package/components/tryghost-mw-error-handler-5.94.0.tgz +0 -0
  57. package/components/tryghost-mw-session-from-token-5.94.0.tgz +0 -0
  58. package/components/tryghost-mw-update-user-last-seen-5.94.0.tgz +0 -0
  59. package/components/tryghost-mw-version-match-5.94.0.tgz +0 -0
  60. package/components/{tryghost-mw-vhost-5.92.0.tgz → tryghost-mw-vhost-5.94.0.tgz} +0 -0
  61. package/components/tryghost-nql-filter-expansions-5.94.0.tgz +0 -0
  62. package/components/tryghost-oembed-service-5.94.0.tgz +0 -0
  63. package/components/{tryghost-package-json-5.92.0.tgz → tryghost-package-json-5.94.0.tgz} +0 -0
  64. package/components/tryghost-post-events-5.94.0.tgz +0 -0
  65. package/components/tryghost-post-revisions-5.94.0.tgz +0 -0
  66. package/components/{tryghost-posts-service-5.92.0.tgz → tryghost-posts-service-5.94.0.tgz} +0 -0
  67. package/components/{tryghost-recommendations-5.92.0.tgz → tryghost-recommendations-5.94.0.tgz} +0 -0
  68. package/components/tryghost-referrers-5.94.0.tgz +0 -0
  69. package/components/{tryghost-security-5.92.0.tgz → tryghost-security-5.94.0.tgz} +0 -0
  70. package/components/{tryghost-session-service-5.92.0.tgz → tryghost-session-service-5.94.0.tgz} +0 -0
  71. package/components/{tryghost-settings-path-manager-5.92.0.tgz → tryghost-settings-path-manager-5.94.0.tgz} +0 -0
  72. package/components/{tryghost-slack-notifications-5.92.0.tgz → tryghost-slack-notifications-5.94.0.tgz} +0 -0
  73. package/components/{tryghost-staff-service-5.92.0.tgz → tryghost-staff-service-5.94.0.tgz} +0 -0
  74. package/components/tryghost-stats-service-5.94.0.tgz +0 -0
  75. package/components/tryghost-tiers-5.94.0.tgz +0 -0
  76. package/components/{tryghost-update-check-service-5.92.0.tgz → tryghost-update-check-service-5.94.0.tgz} +0 -0
  77. package/components/{tryghost-verification-trigger-5.92.0.tgz → tryghost-verification-trigger-5.94.0.tgz} +0 -0
  78. package/components/{tryghost-version-notifications-data-service-5.92.0.tgz → tryghost-version-notifications-data-service-5.94.0.tgz} +0 -0
  79. package/components/tryghost-webmentions-5.94.0.tgz +0 -0
  80. package/core/app.js +22 -0
  81. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
  82. package/core/built/admin/assets/admin-x-activitypub/{index-5eac6af1.mjs → index-51277f76.mjs} +3000 -2661
  83. package/core/built/admin/assets/admin-x-activitypub/modals-c85985ad.mjs +815 -0
  84. package/core/built/admin/assets/{chunk.524.1bc6b183876a00383f90.js → chunk.524.b9da8e9c62fc112baf2b.js} +5 -5
  85. package/core/built/admin/assets/{chunk.582.9682daf3be0962298c43.js → chunk.582.27ddbcbd7a6e7a439db8.js} +6 -6
  86. package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js → chunk.785.78610bd253a9e2419ec9.js} +27 -20
  87. package/core/built/admin/assets/{ghost-acdb9966c24d49e97ac26215cb4933e1.js → ghost-535088daf62c8cbea78a012bb6bbafc6.js} +866 -827
  88. package/core/built/admin/assets/ghost-d1c51d3a2d840dda5aa7b4ffe6057756.css +1 -0
  89. package/core/built/admin/assets/ghost-dark-98b3a7e593292a7cb410609e17727a3c.css +1 -0
  90. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +207 -197
  91. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +26 -26
  92. package/core/built/admin/assets/{vendor-bff75d127fcf4a75c8a83b473bdb308f.js → vendor-649dc64bfd9ecc1bd7361b53680dfdc2.js} +19 -17
  93. package/core/built/admin/index.html +6 -6
  94. package/core/server/data/migrations/versions/5.93/2024-09-03-18-51-01-update-stripe-prices-nickname-length.js +19 -0
  95. package/core/server/data/migrations/versions/5.94/2024-09-03-20-09-40-null-analytics-jobs-timings.js +20 -0
  96. package/core/server/data/schema/schema.js +1 -1
  97. package/core/server/services/email-analytics/EmailAnalyticsServiceWrapper.js +49 -11
  98. package/core/server/services/email-analytics/lib/queries.js +154 -30
  99. package/core/server/services/oembed/service.js +2 -1
  100. package/package.json +150 -150
  101. package/yarn.lock +48 -58
  102. package/components/tryghost-adapter-cache-memory-ttl-5.92.0.tgz +0 -0
  103. package/components/tryghost-adapter-cache-redis-5.92.0.tgz +0 -0
  104. package/components/tryghost-audience-feedback-5.92.0.tgz +0 -0
  105. package/components/tryghost-bookshelf-repository-5.92.0.tgz +0 -0
  106. package/components/tryghost-donations-5.92.0.tgz +0 -0
  107. package/components/tryghost-dynamic-routing-events-5.92.0.tgz +0 -0
  108. package/components/tryghost-email-addresses-5.92.0.tgz +0 -0
  109. package/components/tryghost-email-analytics-provider-mailgun-5.92.0.tgz +0 -0
  110. package/components/tryghost-email-analytics-service-5.92.0.tgz +0 -0
  111. package/components/tryghost-email-service-5.92.0.tgz +0 -0
  112. package/components/tryghost-email-suppression-list-5.92.0.tgz +0 -0
  113. package/components/tryghost-express-dynamic-redirects-5.92.0.tgz +0 -0
  114. package/components/tryghost-extract-api-key-5.92.0.tgz +0 -0
  115. package/components/tryghost-ghost-5.92.0.tgz +0 -0
  116. package/components/tryghost-html-to-plaintext-5.92.0.tgz +0 -0
  117. package/components/tryghost-in-memory-repository-5.92.0.tgz +0 -0
  118. package/components/tryghost-link-replacer-5.92.0.tgz +0 -0
  119. package/components/tryghost-mailgun-client-5.92.0.tgz +0 -0
  120. package/components/tryghost-members-offers-5.92.0.tgz +0 -0
  121. package/components/tryghost-members-payments-5.92.0.tgz +0 -0
  122. package/components/tryghost-milestones-5.92.0.tgz +0 -0
  123. package/components/tryghost-minifier-5.92.0.tgz +0 -0
  124. package/components/tryghost-model-to-domain-event-interceptor-5.92.0.tgz +0 -0
  125. package/components/tryghost-mw-api-version-mismatch-5.92.0.tgz +0 -0
  126. package/components/tryghost-mw-error-handler-5.92.0.tgz +0 -0
  127. package/components/tryghost-mw-session-from-token-5.92.0.tgz +0 -0
  128. package/components/tryghost-mw-update-user-last-seen-5.92.0.tgz +0 -0
  129. package/components/tryghost-mw-version-match-5.92.0.tgz +0 -0
  130. package/components/tryghost-nql-filter-expansions-5.92.0.tgz +0 -0
  131. package/components/tryghost-oembed-service-5.92.0.tgz +0 -0
  132. package/components/tryghost-post-events-5.92.0.tgz +0 -0
  133. package/components/tryghost-post-revisions-5.92.0.tgz +0 -0
  134. package/components/tryghost-referrers-5.92.0.tgz +0 -0
  135. package/components/tryghost-stats-service-5.92.0.tgz +0 -0
  136. package/components/tryghost-tiers-5.92.0.tgz +0 -0
  137. package/components/tryghost-webmentions-5.92.0.tgz +0 -0
  138. package/core/built/admin/assets/admin-x-activitypub/modals-62a088d9.mjs +0 -965
  139. package/core/built/admin/assets/ghost-8c20f019d522f17d318e799568924958.css +0 -1
  140. package/core/built/admin/assets/ghost-dark-b27530aaada81101d641ff1ca5f5df6b.css +0 -1
  141. /package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js.LICENSE.txt → chunk.785.78610bd253a9e2419ec9.js.LICENSE.txt} +0 -0
package/core/app.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const sentry = require('./shared/sentry');
2
2
  const express = require('./shared/express');
3
3
  const config = require('./shared/config');
4
+ const logging = require('@tryghost/logging');
4
5
  const urlService = require('./server/services/url');
5
6
 
6
7
  const fs = require('fs');
@@ -27,12 +28,33 @@ const maintenanceMiddleware = function maintenanceMiddleware(req, res, next) {
27
28
  fs.createReadStream(path.resolve(__dirname, './server/views/maintenance.html')).pipe(res);
28
29
  };
29
30
 
31
+ // Used by Ghost (Pro) to ensure that requests cannot be served by the wrong site
32
+ const siteIdMiddleware = function siteIdMiddleware(req, res, next) {
33
+ const configSiteId = config.get('hostSettings:siteId');
34
+ const headerSiteId = req.headers['x-site-id'];
35
+
36
+ if (`${configSiteId}` === `${headerSiteId}`) {
37
+ return next();
38
+ }
39
+
40
+ logging.warn(`Mismatched site id (expected ${configSiteId}, got ${headerSiteId})`);
41
+
42
+ res.set({
43
+ 'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
44
+ });
45
+ res.writeHead(500);
46
+ res.end();
47
+ };
48
+
30
49
  const rootApp = () => {
31
50
  const app = express('root');
32
51
  app.use(sentry.requestHandler);
33
52
  if (config.get('sentry')?.tracing?.enabled === true) {
34
53
  app.use(sentry.tracingHandler);
35
54
  }
55
+ if (config.get('hostSettings:siteId')) {
56
+ app.use(siteIdMiddleware);
57
+ }
36
58
  app.enable('maintenance');
37
59
  app.use(maintenanceMiddleware);
38
60