Fabien O'Carroll
3062ec7690
Wired up members plaintext emails
...
no-issue
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
257bebbb39
Wired up the members emails templates
...
no-issue
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
f4d202d7c5
Added member email templates
...
no-issue
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
98f27c1c33
Added getSubject function for members emails
...
no-issue
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
6f160518d1
Ensured that members emails include our text version
...
no-issue
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
6070ebaf02
Installed @tryghost/members-api@0.8.1
...
no-issue
This includes changes to support custom subjects in emails and access to
the email of the recipient in the getHTML and getText functions
2019-10-11 11:45:11 +07:00
Fabien O'Carroll
b030081a4b
Updated GhostMailer to allow forcing text content
...
no-issue
This is so that we can pass our own customised text content
2019-10-11 11:45:11 +07:00
Naz Gargol
1b04b48ffd
Added from
parameter for member emails ( #11222 )
...
* Added from parameter for member emails
no issue
- Passed in the `from` parameter when initializing members mailer to be able to customize outgoing address
- Extends GhsotMailer to accept a from parameter from the outside
2019-10-11 11:21:53 +07:00
Kevin Ansfield
816bec28c2
Version bump to 2.35.0
2019-10-10 18:18:45 +01:00
Kevin Ansfield
0cc8b019d1
Updated Ghost-Admin to 2.35.0
2019-10-10 18:18:45 +01:00
Kevin Ansfield
c0533b75ac
Fixed regression tests
2019-10-10 17:45:47 +01:00
Kevin Ansfield
1725f538be
Fixed characters being lost at the end of markdown card content
...
no issue
- bumped @tryghost/url-utils with relevant fix
2019-10-10 16:57:15 +01:00
Kevin Ansfield
6b3c4a59b4
🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards
...
no issue
- Ghost 1.x stored markdown cards with the name `card-markdown`, this was changed in Ghost 2.x to be `markdown`. To keep compatibility with the older mobiledoc content the `markdown` card was aliased using a straightforward `Object.assign()`. Unfortunately this failed to work adequately when the url transformation functions were added to cards and resulted in corrupted data being returned in API responses
- moved the markdown card definition into a factory function so that a clean card definition object can be used for both the `markdown` and `card-markdown` cards
2019-10-10 16:35:29 +01:00
Rish
4f0ca2914f
Updated members schema validation for name
...
no issue
- Removed minimum length requirement for `name` as its possible to have empty name for a member
2019-10-10 17:26:56 +05:30
Fabien O'Carroll
6b4e6fb400
Removed unused stripe_customers relationship
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
99681e692a
Updated the create,get&update member functions
...
no-issue
This updates them to async functions, and defaults falsy name and note to null
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
38832d5c6b
Added note to member json schema
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
f3a8119870
Added note column to csv import/export for members
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
fe59613867
Wired up the note property to members-api
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
035cb55ca9
Added migration for note column on members table
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
0a40d11af9
Added note column to members table
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
58651caa32
Removed members endpoint from admin v2 api
...
no-issue
2019-10-10 17:51:46 +07:00
Fabien O'Carroll
dd214d71dc
Decoupled add
from importCSV
queries
...
no-issue
2019-10-10 17:51:46 +07:00
Nazar Gargol
ec303e5bec
Bumped @tryghost/helpers to 1.1.14
...
- Needed to support `reading_time` propery available on post/page resources
2019-10-10 15:42:04 +07:00
Nazar Gargol
977fb5f650
Added reading_time property to post/page resources in Content API
2019-10-10 15:42:04 +07:00
Kevin Ansfield
9aca599b60
Updated @tryghost/url-utils
...
no issue
- fixes errors thrown from `urlUtils` method calls where the `itemPath` parameter is not passed
2019-10-09 22:31:04 +01:00
Kevin Ansfield
c6b9193940
Fixed duplicated host in URLs returned from API when saved as relative
...
no issue
- Ghost passes full urls through to the `url-utils` methods as the `itemPath` argument when performing relative->absolute transforms
- `url-utils` was not handling this correctly for page-relative urls (no leading slash) where it resulted in duplicate hosts such as http://mysite.com/http://mysite.com/item-path/relative-path
- bumps version of @tryghost/url-utils to a fixed version
2019-10-09 20:49:51 +01:00
Nazar Gargol
4a10ddc8fa
Fixed unsafeAttributes fetching in Admin API v2
...
no issue
- This check was misside and only was implemented for canary.
2019-10-09 21:16:27 +02:00
Kevin Ansfield
27e77dda80
Version bump to 2.34.0
2019-10-09 18:43:04 +01:00
Kevin Ansfield
e37cb1dce8
Updated Ghost-Admin to 2.34.0
2019-10-09 18:43:04 +01:00
Kevin Ansfield
cb89703e2b
Fixed regression tests
2019-10-09 18:37:44 +01:00
Kevin Ansfield
b01bae7c3d
🐛 Fixed 500 errors when fetching certain posts via the Admin API
...
no issue
- it's possible to have `mobiledoc` that has anchor markups with no `href` attribute, in that situation our url-transformation utilities were throwing errors when generating Admin API output
- bumps `@tryghost/url-utils` with fixed utility functions
2019-10-09 17:21:06 +01:00
Naz Gargol
b4548b0119
Update dependency gscan to v2.10.0 ( #11221 )
...
no issue
- This removes unwanted checks for `{{statusCode}}` which are compatible with v3 and were added by mistake in v2
2019-10-09 12:13:12 +02:00
Rish
e7d7d9fdcc
Added new fromAddress
setting for member subscriptions
...
no issue
- Adds new `fromAddress` setting for member subscriptions to allow custom from mail address
2019-10-09 15:28:40 +05:30
Fabien O'Carroll
b77026870b
Moved migrations from 3.0 to 2.34
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
cbb6337ae4
Prefixed stripe_customers_subscriptions with members
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
29b3dad302
Updated get/set metadata fn signatures
...
no-issue
This is to reflect an upstream change in members-api
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
757fe72da1
Installed @tryghost/members-api@0.8.0
...
no-issue
This adds support for storing and retrieving stripe data from local db
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
4c07d86086
Updated getMemberMetadata to use findAll method
...
no-issue
This means we go via our version of the bookshelf model
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
ee0449245a
Updated setMemberMetadata to use upsert method
...
no-issue
Much cleaner now :)
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
3366bd1254
Added upsert method to stripe models
...
no-issue
This is kind of copied from the session model, but simplified
This will allow much easier integration with members-api
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
998642eb24
Allowed filter
option for findAll
method
...
no-issue
This will allow us to constrain findAll queries, rather than using knex
`where` & `fetchAll` methods
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
a6354d1acb
Updated members api to store/retrieve subscriptions
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
37bb12afb3
Added model for stripe_customers_subscriptions
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
0c32dfaa30
Added migrations for stripe tables
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
a4ff87a774
Added stripe subscriptions & updated customers table
...
no-issue
2019-10-09 16:24:51 +07:00
Fabien O'Carroll
312e0cc31e
Installed @tryghost/members-ssr@0.7.0
...
no-issue
This removes the cookie caching functionality from members-ssr
2019-10-09 16:24:51 +07:00
Naz Gargol
786eaac57e
Added permission restrictions to editing members flag ( #11217 )
...
no issue
- Added test cases to check edit permission on settings endpoints
- Added test to demonstrate owner-only being able to toggle members flag
- Permission check when editing settings `lab.members`
- Passed additional function to permissions to allow custom selection of unsafe attributes due to settings object structure.
- Fully implementing this check on controller level would be wrong architecturally and not that straight forward because we lack role data in "frame"
- Cleaned up test after moving default_content_visibility to it's own property
2019-10-09 10:26:54 +02:00
Fabien O'Carroll
1e731dcdd3
Removed token param on page load for members
...
no-issue
This adds a bit of protection from accidentally sharing the url, and
also makes the url look cleaner
2019-10-09 13:36:06 +07:00
Fabien O'Carroll
dd419be2fb
Added guard for missing stripe tokens
...
no-issue
This ensures that even if a stripe config object is present, we still
ensure that stripe is configured without keys
2019-10-09 12:00:53 +07:00