Commit Graph

12142 Commits

Author SHA1 Message Date
Aileen Nowak
8e4d58ddfe Updated ghost.org links 2021-01-19 13:28:36 +13:00
Fabien 'egg' O'Carroll
7fdddf34b3
🐛 Added multiple use grace period to tokens (#12519)
closes https://github.com/TryGhost/Ghost/issues/12347

This change allows a token to be used multiple times for the first 10
seconds after its initial use, this will stop dynamic link checking
software from invaliding magic links.
2021-01-18 17:03:41 +00:00
Renovate Bot
a0303a246e Update dependency @tryghost/adapter-manager to v0.2.7 2021-01-18 11:01:22 +00:00
Renovate Bot
920592e0ac Update dependency @tryghost/constants to v0.1.4 2021-01-18 11:00:50 +00:00
Renovate Bot
df4743b2f7
Update dependency eslint to v7.18.0 2021-01-18 07:52:33 +00:00
Renovate Bot
f7690dedc1
Update dependency supertest to v6.1.1 2021-01-15 19:09:28 +00:00
Renovate Bot
a9777139f9
Update dependency supertest to v6.1.0 2021-01-15 17:09:41 +00:00
Thibaut Patel
6a49df36cb Moved the users service to use our DI pattern
refs #12537
2021-01-15 17:58:36 +01:00
Sanne de Vries
c8931a47b5 Updated newsletter blockquote font styling 2021-01-15 15:42:01 +01:00
Renovate Bot
42cac5a93b Update dependency @tryghost/string to v0.1.16 2021-01-15 14:37:31 +00:00
Renovate Bot
6fef7046b6 Update dependency @tryghost/session-service to v0.1.15 2021-01-15 14:37:23 +00:00
Renovate Bot
3f890151af Update dependency @tryghost/promise to v0.1.4 2021-01-15 14:37:14 +00:00
Thibaut Patel
3576832c0c Moved the OEmbed service to use our DI pattern
refs #12537
2021-01-15 15:35:30 +01:00
Rish
65de727a15 Bumped Portal to v0.15.0
no refs

- Adds FirstPromoter integration based on new settings
- Cleanup
2021-01-15 19:56:04 +05:30
Rish
a1663bea91 💄Updated newsletter design to use accent color
no issue

- Updates newsletter design to use accent color for blockquote border if present
2021-01-15 19:47:32 +05:30
Rish
417a4c7281 Added firstpromoter id to member site data
no issue

Adds FirstPromoter id to member site data from settings, allowing Portal to setup FirstPromoter integration if enabled
2021-01-15 19:09:59 +05:30
Rishabh Garg
592c1bd46c
Added FirstPromoter Integration (#12540)
no refs

Adds new FirstPromoter settings similar to amp, which allows sites to take advantage of FirstPromoter to launch their own member referral program natively.

- Adds new firstpromoter settings group
- Adds `firstpromoter` setting to group
- Adds `firstpromoter_id` setting to group for FirstPromoter referral tracking id
- Updated tests
2021-01-15 19:05:15 +05:30
Renovate Bot
112109ca45
Update dependency jsonpath to v1.1.0 2021-01-14 21:06:38 +00:00
Thibaut Patel
0bea158832 Moved the service logic out of the users controller
refs #12537
2021-01-14 16:41:59 +01:00
Thibaut Patel
d8245216ec Moved the service logic out of the oembed controller
refs #12537
2021-01-14 16:41:33 +01:00
Daniel Lockyer
46574de3c5
Fixed check of git remote
- for some reason, that git remote check wasn't working in a bash expansion, and
  then I couldn't get variables updating properly
- this one seems to work and maintains the functionality we want
2021-01-14 13:37:06 +00:00
Daniel Lockyer
2bdb9c5d0a
Added fallback remote for grunt master
no issue

- our docs do not tell the user to set up an `upstream` remote for Casper, so
  running `grunt master` will fail as it expects `upstream` to exist
- this commit adds detection for if `upstream` exists, and falls back to
  `origin` if not
2021-01-14 12:28:55 +00:00
Naz
6d2dfff5b5 Refactored invites module into a class
refs #12537
2021-01-14 19:42:38 +13:00
Naz
01855389a5 Moved invites controller code into a service module
refs #12537

- Part of the controller code refactor into services to avoid code duplication during introduction of a new API.
2021-01-14 19:25:16 +13:00
Naz
2a6ae77221 Fixed linting error 2021-01-14 18:39:27 +13:00
Naz
1cec604318 Fixed update check tests
refs #12537

- Refactored overuse of rewire mocking blog-version.
- Fixed a bug introduced along the way when duplicate notifications errored instead of returning empty result
2021-01-14 18:30:09 +13:00
Naz
cc9d987e94 Fixed notifications api user for internal context
refs #12537

- Fix after a refactor introduced in 935ffdd0f6
2021-01-14 17:49:55 +13:00
Naz
935ffdd0f6 Refactored notifications module into a class
refs #12537

- Classes with DI friendly constructors are the pattern that are followed across the codebase
2021-01-14 16:19:15 +13:00
Naz
d2f0f0d7bc Moved notifications controller code into a service module
refs #12537

- notifications controllers were overbloated with non controller related code and were identical. It is important to reduce unnecessary code ahead of v4 API introduction
- Follow up commit will transform newly created module into a class following DI pattern
2021-01-14 15:55:55 +13:00
Naz
aff4a7055e Extracted members controller's import method
refs #12537

- Moved code related to the importer into the MembersImporter class to  keep the controller code light
2021-01-14 14:05:22 +13:00
Naz
105bc6cff3 Added jsdoc to MembersStats class
no issue
2021-01-14 12:59:17 +13:00
Renovate Bot
4e497fb9d1 Update dependency @tryghost/errors to v0.2.7 2021-01-13 18:06:31 +00:00
Renovate Bot
680133a888 Update dependency @tryghost/bootstrap-socket to v0.2.5 2021-01-13 18:06:23 +00:00
Renovate Bot
3ecc84c737 Update dependency @tryghost/social-urls to v0.1.18 2021-01-13 18:06:02 +00:00
Renovate Bot
fe888c7050
Update dependency ghost-ignition to v4.3.0 2021-01-13 16:02:06 +00:00
Renovate Bot
79b512df95 Update dependency @tryghost/job-manager to v0.7.1 2021-01-13 15:52:06 +00:00
Renovate Bot
1f2cebcc47 Update dependency @tryghost/html-to-mobiledoc to v0.7.9 2021-01-13 15:51:56 +00:00
Renovate Bot
e4adc5564a Update dependency @tryghost/mw-session-from-token to v0.1.14 2021-01-13 15:51:39 +00:00
Renovate Bot
01bf344b14 Update dependency @tryghost/security to v0.2.4 2021-01-13 15:51:08 +00:00
Renovate Bot
5d55a54090 Update dependency @tryghost/url-utils to v0.6.25 2021-01-13 15:50:52 +00:00
Renovate Bot
78afa4cf1f
Update dependency @sentry/node to v5.30.0 2021-01-13 12:06:39 +00:00
Naz
10304c79a4 Refactored members stats module into class
refs #12537

- Class syntax is preferred over module functions because of constructor parameter injection (DI) which allows for easier module decoupling and testing
2021-01-13 22:43:05 +13:00
Naz
e62c4075f0 Moved members stats code out of members controller
refs #12537

- `stats` method in members controller is quite big and does much more then controller method code should - few calls to relevant modules
- Extracted code "as is" into members serivce
- Next step will be to refactor this module as a class pattern with DI parameters
2021-01-13 22:43:05 +13:00
Daniel Lockyer
91633faf24
Updated Ghost-Admin submodule url
no issue

- the repository has been renamed, so this commit bring the URL in line
  with these changes
2021-01-13 09:38:00 +00:00
Renovate Bot
f92cb0f31c
Update dependency @tryghost/zip to v1.1.8 2021-01-12 23:09:37 +00:00
Renovate Bot
51a452bd27
Update dependency @tryghost/vhost-middleware to v1.0.11 2021-01-12 21:09:34 +00:00
Renovate Bot
5805e9d93a
Update dependency @tryghost/helpers to v1.1.37 2021-01-12 19:07:03 +00:00
Kevin Ansfield
63f7f9a827 🐛 Disabled auto-unsubscribe of members on permanent email failure events
refs https://github.com/TryGhost/Team/issues/446

Mailgun permanent failure events do not always correspond to unsubscribe-level events as originally thought, meaning some members could be unsubscribed unexpectedly due to delivery hiccups.

- disabled auto-unsubscribe on permanent failure events in the analytics event processor
- list maintenance will be added back in the future via alternative means
2021-01-12 18:40:31 +00:00
Renovate Bot
92de3f342a
Update dependency @tryghost/admin-api-schema to v1.4.3 2021-01-12 17:06:18 +00:00
Renovate Bot
c985a4f0c8
Update dependency @tryghost/kg-default-cards to v3.1.0 2021-01-12 13:06:22 +00:00