0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
Commit graph

12256 commits

Author SHA1 Message Date
Daniel Lockyer
2b7590459d v3.42.9 2022-01-21 18:35:24 +00:00
Daniel Lockyer
78d5cbce58 Updated Admin to v3.42.9 2022-01-21 18:35:24 +00:00
Fabien 'egg' O'Carroll
72e9efc7e5
Fixed config API not returning boolean (#14034)
refs https://github.com/TryGhost/Team/issues/1279

The mailgunIsConfigured config should be a boolean, rather than a string/undefined/null.
2022-01-21 09:53:47 +02:00
Joe Grigg
f3ed6ace12 Updated github release action to use new main branch of ghost-release
no issue

- We have switched over to using the new git standard of using the main branch rather than master.
2022-01-11 16:20:41 +00:00
Fabien 'egg' O'Carroll
eb8a37de54
Added cache control headers to members api (#13904)
closes https://github.com/TryGhost/Team/issues/846

- members api was missing cacheControl middleware to declare its cache control headers

Co-authored-by: Rishabh <zrishabhgarg@gmail.com>
2022-01-07 23:43:13 +02:00
Daniel Lockyer
cdbab0d5c3 v3.42.8 2021-12-14 09:13:18 +00:00
Daniel Lockyer
2ac7994895 Updated Admin to v3.42.8 2021-12-14 09:13:17 +00:00
Thibaut Patel
fd9b76c823 🐛 Fixes oembed bookmark with whitespaces
refs https://github.com/TryGhost/Team/issues/1200

- The leading/trailing whitespaces are trimmed by `new URL()` but are considered invalid in metascraper. Trimming solves this edge case.
2021-12-13 15:49:18 +02:00
Thibaut Patel
0367101c87 🐛 Fixed malformed URLs crashing the url helper
refs https://github.com/TryGhost/Team/issues/960

- Character like "%%" or "%80" would crash our current url escaping
  behavior. We consider they aren't valid URLs as the percentages
  haven't been properly escaped.
2021-12-13 15:49:18 +02:00
Fabien egg O'Carroll
0b973d1f29 Redirected to original image when resizing fails
refs https://github.com/TryGhost/Team/issues/1234

Sharp can occasionally fail resizing, this is usually due the the
underlying libvips library failing. We do not want this to cause an
error however, instead we should just show the original image - as
resizing is an optimisation, rather than a requirement.
2021-12-13 15:49:18 +02:00
Kevin Ansfield
54b537deba Fixed error when requesting resize of a blank image
closes https://github.com/TryGhost/Team/issues/819

- adds guard for an empty buffer when reading file from storage for resizing, if a blank image is loaded then redirect to the original file
2021-12-13 15:49:18 +02:00
Daniel Lockyer
d36ee59dbe Hardcoded Ghost-CLI to supported version
no issue

- more recent versions of Ghost-CLI don't support Node 10 so we need to
  hardcode the Node version in order for tests to pass
2021-12-09 10:17:14 +00:00
Daniel Lockyer
5e55e2198b v3.42.7 2021-11-03 09:13:25 +00:00
Daniel Lockyer
d13425f5c0 Updated Admin to v3.42.7 2021-11-03 09:13:25 +00:00
Kevin Ansfield
21ac7bb0f7
Fixed ETag header for admin templates not changing between versions (#13695)
refs https://github.com/TryGhost/Team/issues/1175
backports https://github.com/TryGhost/Ghost/pull/13680

We found the ETag header sent when serving the Admin template for /ghost/ was not changing between versions which after an upgrade could result in out of date cached content being served containing links to JS/CSS files that no longer existed.

The culprit is weak etags served by Node's `send` package, coupled with Admin template filesize not changing between versions and `npm pack` setting a fixed modification date for every file. See pillarjs/send#176 for more details.

- updated the Admin app's controller to read the template and generate an md5 hash of the contents so we can serve a strong ETag header value when serving the `/ghost/` html
2021-10-28 12:07:13 +01:00
Aileen Nowak
8309be4022 Fixed test after adding forceUpgrade to config properties 2021-10-25 10:02:11 +02:00
Aileen Nowak
989ab0edb5 Added forceUpgrade config settings
no issue

- Added the `forceUpgrade` config setting to be able to use it together with BMA.
- The flag is a property of `host_settings` and is passed to the Admin client
2021-10-25 09:45:40 +02:00
Daniel Lockyer
51c62371af
Added RELEASE_NOTIFICATION_URL secret to release workflow
refs https://linear.app/tryghost/issue/CORE-38/automate-releases

- this is a notification endpoint which we pass down to the
  `action-ghost-release` GitHub Action to create notifications when the
  release is done
2021-09-28 16:46:11 +01:00
Daniel Lockyer
64c6a69c1b
v3.42.6 2021-09-23 10:47:54 +01:00
Daniel Lockyer
baf95f7127
Updated Admin to v3.42.6 2021-09-23 10:47:53 +01:00
Fabien O'Carroll
b6be89a44f
🔒 Fixed member email change vulnerability
refs https://github.com/TryGhost/Ghost/security/advisories/GHSA-65p7-pjj8-ggmr

This updates the signup/signin flow for members to no longer support the
email address change flow - which had missing authentication. It has
been replaced with a dedicated email change flow, and Portal has been
updated to use it.
2021-09-23 10:46:00 +01:00
Daniel Lockyer
a8ee33b533
Updated CI release workflow to use built-in token
no issue

- `RELEASE_TOKEN` is currently a GitHub personal token, but this
  has some downsides:
    - if the token ever expires and I'm unaware, it'll break the release
      process
    - GitHub Releases say the creator was `daniellockyer` even if someone
      else actually did the release
- this commit switches over to using the built-in `GITHUB_TOKEN`, which
  is owned by the `github-actions` app and should never expire
- aside from that, Ghost releases will be created by the neutral
  `github-actions` account
2021-09-22 12:24:01 +01:00
Daniel Lockyer
beccb65989
v3.42.5 2021-04-16 17:37:33 +01:00
Daniel Lockyer
0641d9b42f
Updated Ghost-Admin to v3.42.5 2021-04-16 17:37:33 +01:00
Thibaut Patel
e29a62aadb
🔒 Added a way to hide the secret settings once they are set
issue https://github.com/TryGhost/Team/issues/621
2021-04-16 17:34:33 +01:00
Daniel Lockyer
0d312d3e00
v3.42.4 2021-03-23 17:03:05 +00:00
Daniel Lockyer
bfd4f8b5df
Updated Ghost-Admin to v3.42.4 2021-03-23 17:03:04 +00:00
Daniel Lockyer
9230e1c2a6
v3.42.3 2021-03-18 17:32:33 +00:00
Daniel Lockyer
7c092676a1
Updated Ghost-Admin to v3.42.3 2021-03-18 17:32:33 +00:00
Fabien 'egg' O'Carroll
1510070dcd
Fixed typo in migration to add backupContent permission (#12776)
refs https://github.com/TryGhost/Team/issues/553

A typo in the permission migration was introduced in
https://github.com/TryGhost/Ghost/commit/79c3709f

A migration to fix broken values will be present in Ghost 4.1
2021-03-18 14:51:11 +00:00
Daniel Lockyer
33470f2a23
Fixed CI test for installing the latest release
no issue

- now 4.0 is out, the latest version is going to be higher than the
  version we're trying to manually update to in this test
- the "latest version" for the 3.x branch should be v3 anyway, so this
  commit updates that test to explicitly install v3
2021-03-17 11:56:40 +00:00
Daniel Lockyer
f71a969083
v3.42.2 2021-03-15 13:00:48 +00:00
Daniel Lockyer
82d836d913
Updated Ghost-Admin to v3.42.2 2021-03-15 13:00:48 +00:00
Daniel Lockyer
2dcd74afb1
v3.42.1 2021-03-12 11:24:26 +00:00
Daniel Lockyer
908c417918
Updated Ghost-Admin to v3.42.1 2021-03-12 11:24:26 +00:00
Daniel Lockyer
560db74bc1
v3.42.0 2021-03-04 12:16:15 +00:00
Daniel Lockyer
cd7ac5fde0
Updated Ghost-Admin to v3.42.0 2021-03-04 12:16:15 +00:00
Sam Lord
cfbb53c738 Update to latest Ghost Ignition 2021-03-04 12:04:38 +00:00
Sam Lord
3d170b2ff0 Add ElasticSearch logging to v3
no issue
Wire up config to the latest ghost-ignition to enable remote logging on Ghost v3
2021-03-03 17:55:36 +00:00
Naz
b22e7fa84c
Fixed truncated worker thread messages
refs 12a1c60424

- The bump contains a bump in bree version, which fixes message truncation problem
2021-03-03 08:24:05 +00:00
Hannah Wolfe
ae3137da40 Updated config to pull additional host settings
ref e1e5caac3d

- we are working on separating out various host functions into separate applications, all of which Ghost can load if configured
2021-03-02 12:45:35 +00:00
Fabien O'Carroll
ca619af41a
Removed warning logging from members 'middleware'
refs https://github.com/TryGhost/Team/issues/498

This was filling up logs with less than useful information - for every
single request made by a non-member to the frontend. Be gone!
2021-03-02 09:58:14 +00:00
Daniel Lockyer
5c1f44d1b3
v3.41.9 2021-03-01 15:43:24 +00:00
Daniel Lockyer
c9f151decd
Updated Ghost-Admin to v3.41.9 2021-03-01 15:43:23 +00:00
Fabien O'Carroll
9434f183d2 🐛 Fixed cancelling subscriptions when deleting members
closes https://github.com/TryGhost/Ghost/issues/12711
refs https://github.com/allouis/Members/commit/0be1ce2c

We were not waiting for the stripeSubscriptions relation to be fetched
from the database before looping through them and deleting them, the
members-api has been updated to correctly wait for the relations to be
fetched, and this bump fixes the issue.
2021-03-01 11:42:11 +00:00
Daniel Lockyer
5f94dab52b
v3.41.8 2021-02-23 11:47:39 +00:00
Daniel Lockyer
0efbbb1175
Updated Ghost-Admin to v3.41.8 2021-02-23 11:47:39 +00:00
Fabien O'Carroll
37518a3d5e 🐛 Fixed updating member payment details
closes https://github.com/TryGhost/Team/issues/479
refs https://github.com/TryGhost/Members/commit/efe60a17
refs https://github.com/TryGhost/Portal/commit/a0588e87

This updates the members-api to make sure that members with cancelled
subscriptions, and members with multiple active customers can update
their payment details without error.

We also add the ability to update the payment method for a specific
subscription - which is more explicit and is used by Portal since the
commit referenced
2021-02-23 11:26:17 +00:00
Kevin Ansfield
ae506097f4
Fixed fs error during theme install deleting active theme (#12688)
closes https://github.com/TryGhost/Ghost/issues/12506

- adds an error handler that will rename the backup folder to the original name if the newly uploaded theme wasn't saved successfully
2021-02-23 10:50:23 +00:00
Daniel Lockyer
50f40f3e1c
v3.41.7 2021-02-22 18:37:54 +00:00