Added support for entryId in affiliate links.
This commit is contained in:
parent
a2d5828fda
commit
c536a75f3d
|
|
@ -38,6 +38,7 @@ export function getAffiliateSceneUrl(scene) {
|
||||||
scenePath: scene.affiliate.parameters.prefixSlash
|
scenePath: scene.affiliate.parameters.prefixSlash
|
||||||
? scenePath
|
? scenePath
|
||||||
: scenePath.replace(/^\//, ''),
|
: scenePath.replace(/^\//, ''),
|
||||||
|
entryId: scene.entryId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ function curateScene(rawScene, assets, reqUser) {
|
||||||
title: rawScene.title,
|
title: rawScene.title,
|
||||||
slug: rawScene.slug,
|
slug: rawScene.slug,
|
||||||
url: rawScene.url,
|
url: rawScene.url,
|
||||||
|
entryId: rawScene.entry_id,
|
||||||
date: rawScene.date,
|
date: rawScene.date,
|
||||||
datePrecision: rawScene.date_precision,
|
datePrecision: rawScene.date_precision,
|
||||||
createdAt: rawScene.created_at,
|
createdAt: rawScene.created_at,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue