0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
Commit graph

12200 commits

Author SHA1 Message Date
Kevin Ansfield
e59ed22a4d
🐛 Fixed unexpected members-only content appearing in excerpt field (#12670)
closes https://github.com/TryGhost/Team/issues/468

- updated post-gating
  - clears excerpt if there's no access
2021-02-22 09:51:44 +00:00
Daniel Lockyer
22f6b44cd2
v3.41.6 2021-02-17 17:22:39 +00:00
Daniel Lockyer
a98f6a54e3
Updated Ghost-Admin to v3.41.6 2021-02-17 17:22:39 +00:00
Daniel Lockyer
9a4be0007c
🐛 Fixed payment methods not getting attached to subscriptions
no issue

- when a customer updated their card, this wasn't being attached to the
  subscription due to a code issue
- this meant that an expired card may still be the default payment
  method, causing renewals to fail
- this was due to a missing `await` and an incorrect subscription ID
  extraction in the underlying members-api package
- this commit bumps the members-api to fix this
2021-02-17 17:15:33 +00:00
KiraLT
92793ab56b
🐛 Fixed EADDRINUSE error handling on NodeJS >=13 (#12591)
closes https://github.com/TryGhost/Ghost#12562

- From NodeJS v13 `error.errno` returns error code instead of a string. Because  of that use friendly "port is already in use" message did not work anymore. 
- Changed to use `error.code` which acts the same way as `error.errno` in older NodeJS versions.
2021-02-16 13:21:21 +00:00
Daniel Lockyer
d284c6469a
v3.41.5 2021-02-11 18:39:15 +00:00
Daniel Lockyer
d5ba36445d
Updated Ghost-Admin to v3.41.5 2021-02-11 18:39:15 +00:00
Daniel Lockyer
59af54996a
🐛 Fixed new paid members showing up with status as 'incomplete'
no issue

- webhooks from Stripe may come in out-of-order, with the "created"
  webhook arriving after the "updated" one
- this would cause a subscription record with "active" to then be
  overwritten with "incomplete"
- due to a rewrite in members-api, we weren't re-fetching the Stripe record
  before attempting to update the DB
- this commit bumps members-api, which fixes this issue
2021-02-11 18:30:54 +00:00
Daniel Lockyer
f39d45cdf5
v3.41.4 2021-02-09 11:33:01 +00:00
Daniel Lockyer
edb94457c3
Updated Ghost-Admin to v3.41.4 2021-02-09 11:33:01 +00:00
Sanne de Vries
54a4a49b9d Fixed bug for newsletter bookmarks without author displaying redundant separator 2021-02-09 09:49:18 +01:00
Rish
2ef5fb8380 Updated {{content}} helper partial template name
no issue
refs e3a0bb535f

Previously, {{content}} helper was updated use default or custom template to show a CTA when trying to use helper without access to content.

While the change was expected to not affect any existing themes as `{{content}}` helper is not supposed to be used on member sites without `access` check, we found quite a few themes use a pattern of using `content.hbs` with `{{content}}` helper inside them as default, which causes infinite loop in how content helper works in certain cases.

Whilst this followed the pattern of the other helpers using a partial with the same name, there are 2 key differences:

- this partial template pattern is being introduced way after the inception of themes with a fairly generic name “content”
- this partial template isn’t used to render the helper all the time - just the CTA part under certain circumstances.

This change updates the template name to `content-cta.hbs` to which makes it less likely to clash, and makes more sense as to what it is.
2021-02-09 14:05:49 +05:30
Sanne de Vries
f1555e2cb2 Fixed gmail bug for newsletter bookmark cards not displaying correctly 2021-02-08 16:53:26 +01:00
Fabien O'Carroll
33910db1ec
🐛 Fixed Member model removing labels when unset
closes https://github.com/TryGhost/Ghost/issues/12600

The bookshelf-relations plugin which we use will **remove** all
relations when they are set to an empty array, but will leave them alone
if it's set to undefined.

Our logic to deduplicate uppercase & lowercase version of the same label
was in advertently always setting the labels to an array, but when the
model was saved without passing the labels, this array would be empty.

Here we've added a check which will skip all label handling, if there
are no labels set.
2021-02-08 09:44:47 +00:00
Daniel Lockyer
59c51f3862
Updated CI workflow for 3.x branch changes
- this branch is now the maintenance branch for 3.x so we don't want to
  build canary packages on it
- also updates the Slack notification if-statements to check if we're on
  the 3.x branch
2021-02-05 10:05:17 +00:00
Daniel Lockyer
8737267001
v3.41.3 2021-02-01 14:40:51 +00:00
Daniel Lockyer
43fe53e5c8
Updated Ghost-Admin to v3.41.3 2021-02-01 14:40:51 +00:00
renovate[bot]
bc4ed6a614
Update dependency @tryghost/members-api to v0.37.7 (#12586)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-01 14:11:53 +05:30
Renovate Bot
9e6be47f51
Update dependency keypair to v1.0.2 2021-02-01 03:05:29 +00:00
Renovate Bot
4a3eaf3ee1
Update Test & linting packages 2021-02-01 00:31:41 +00:00
Rishabh Garg
5417c4d0e1 Removed stripe keys and analytics data from export (#12573)
closes https://github.com/TryGhost/Ghost/issues/12449

We’re starting to bump into errors with our current exporter due to the size of some of the tables in the db and hitting an issue with Ghost running out of memory during export. The intention for the export/import is not to be backup/restore functionality, but for exporting content and authors.

In addition, exporting and re-importing Stripe secret/publishable keys can cause unexpected side-effects for sites that can has major side-effects. This change -

- Removes `email_batches` and `email_recipients` tables from export data to reduce export size due to large amount of analytics data
- Removes stripe's secret/publishable/webhook keys to avoid unexpected issues with re-import
2021-01-28 14:55:54 +05:30
Daniel Lockyer
8db92b0625
v3.41.2 2021-01-27 15:50:27 +00:00
Daniel Lockyer
bbc9c85770
Updated Ghost-Admin to v3.41.2 2021-01-27 15:50:27 +00:00
renovate[bot]
a7524a3676
🐛 Fixed issue opening Stripe Checkout via data-members-plan
Update dependency @tryghost/members-api to v0.37.6 (#12580)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 15:46:23 +00:00
Renovate Bot
b354456f83
Update dependency ghost-ignition to v4.4.3 2021-01-27 13:48:30 +00:00
Renovate Bot
193e0b20e8
Update dependency sanitize-html to v2.3.2 2021-01-26 22:15:17 +00:00
Daniel Lockyer
93bf807419
v3.41.1 2021-01-26 16:54:30 +00:00
Daniel Lockyer
e713585dd4
Updated Ghost-Admin to v3.41.1 2021-01-26 16:54:29 +00:00
Thibaut Patel
cd27cba93d 🔒 Fixed open redirect in private site login
no refs

- prevents redirect to external sites after providing private site password

Credits: https://github.com/max-schaefer
2021-01-26 16:42:42 +00:00
Daniel Lockyer
7f04ca1bda
v3.41.0 2021-01-26 16:03:12 +00:00
Daniel Lockyer
4357a1d378
Updated Ghost-Admin to v3.41.0 2021-01-26 16:03:11 +00:00
Fabien O'Carroll
8631710b68 Fixed Members importer usage of linkStripeCustomer
no-issue

The method signature was updated in the refactor and this was missed
2021-01-26 21:26:19 +05:30
renovate[bot]
0e08ce1612
Update dependency @tryghost/members-api to v0.37.5 (#12575)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-26 13:15:02 +00:00
Renovate Bot
380ee8223a Update dependency @tryghost/members-csv to v0.4.2 2021-01-26 09:53:26 +05:30
Renovate Bot
b6c9538e54 Update dependency @tryghost/magic-link to v0.6.4 2021-01-26 09:52:13 +05:30
Renovate Bot
10fcaf8f23 Update dependency @tryghost/members-ssr to v0.8.8 2021-01-26 09:51:43 +05:30
Renovate Bot
fad905d86c
Update dependency supertest to v6.1.3 2021-01-25 21:47:40 +00:00
John O'Nolan
31f8156676 2021 2021-01-25 16:52:15 +00:00
renovate[bot]
646f63ebdf
Update dependency @tryghost/members-api to v0.37.3 (#12571)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-25 14:27:04 +00:00
renovate[bot]
38647930b1
Update dependency @tryghost/members-api to v0.37.2 (#12561)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-25 11:12:15 +00:00
Renovate Bot
01206217f5
Update dependency supertest to v6.1.2 2021-01-25 06:46:03 +00:00
Renovate Bot
8fd3034d3c
Update dependency sinon to v9.2.4 2021-01-25 00:51:49 +00:00
Renovate Bot
f8776c0536
Update dependency sanitize-html to v2.3.1 2021-01-22 20:35:28 +00:00
Thibaut Patel
01126cf1bb Added acceptance tests on the v3 api version.
refs https://github.com/TryGhost/Team/issues/221
2021-01-22 17:49:06 +01:00
Renovate Bot
aae58ba4e4
Update dependency ghost-ignition to v4.4.2 2021-01-22 14:21:41 +00:00
Naz
e82a21cbcf Updated acceptance&regression test suite readmes
no reference

- The instructions in readmes were outdates. Updated with a little more accurate information (they still need a massive cleanup, but that should be a part of a separate effort)
2021-01-22 16:42:02 +13:00
Thibaut Patel
ff6d31e08f Pointed the v3 endpoint to the v3 folder
refs https://github.com/TryGhost/Team/issues/221
2021-01-22 16:32:03 +13:00
Thibaut Patel
3127aac47c Added regression tests for the v3 endpoints
refs https://github.com/TryGhost/Team/issues/221
2021-01-22 16:32:03 +13:00
Thibaut Patel
23e50c6ccc Pointed the v3 unit tests to the actual v3 code
refs https://github.com/TryGhost/Team/issues/221
2021-01-22 16:32:03 +13:00
Thibaut Patel
af9c5fd2f1 💡 Split the v3 endpoint from the canary endpoint
refs https://github.com/TryGhost/Team/issues/221
2021-01-22 16:32:03 +13:00