Added support for entryId in affiliate links.

This commit is contained in:
DebaucheryLibrarian 2026-01-29 21:29:26 +01:00
parent a2d5828fda
commit c536a75f3d
2 changed files with 2 additions and 0 deletions

View File

@ -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,
}); });
} }

View File

@ -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,