mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
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
This commit is contained in:
parent
592c1bd46c
commit
417a4c7281
1 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,7 @@ const updateMemberData = async function (req, res) {
|
|||
const getMemberSiteData = async function (req, res) {
|
||||
const isStripeConfigured = membersService.config.isStripeConnected();
|
||||
const domain = urlUtils.urlFor('home', true).match(new RegExp('^https?://([^/:?#]+)(?:[/:?#]|$)', 'i'));
|
||||
const firstpromoterId = settingsCache.get('firstpromoter') ? settingsCache.get('firstpromoter_id') : '';
|
||||
const blogDomain = domain && domain[1];
|
||||
let supportAddress = settingsCache.get('members_support_address') || 'noreply';
|
||||
if (!supportAddress.includes('@')) {
|
||||
|
@ -112,6 +113,7 @@ const getMemberSiteData = async function (req, res) {
|
|||
portal_button_icon: settingsCache.get('portal_button_icon'),
|
||||
portal_button_signup_text: settingsCache.get('portal_button_signup_text'),
|
||||
portal_button_style: settingsCache.get('portal_button_style'),
|
||||
firstpromoter_id: firstpromoterId,
|
||||
members_support_address: supportAddress
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue