Using direct parent as release actor entity instead of highest parent.
This commit is contained in:
parent
e095d8317b
commit
8eebcae85d
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
Binary file not shown.
After Width: | Height: | Size: 272 KiB |
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
|
@ -799,6 +799,11 @@ const tags = [
|
||||||
slug: 'short-hair',
|
slug: 'short-hair',
|
||||||
group: 'hair',
|
group: 'hair',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'sideways',
|
||||||
|
slug: 'sideways',
|
||||||
|
group: 'position',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'skirt',
|
name: 'skirt',
|
||||||
slug: 'skirt',
|
slug: 'skirt',
|
||||||
|
@ -1747,6 +1752,10 @@ const aliases = [
|
||||||
name: 'shoes',
|
name: 'shoes',
|
||||||
for: 'shoes-on',
|
for: 'shoes-on',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'side fuck',
|
||||||
|
for: 'sideways',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'slave',
|
name: 'slave',
|
||||||
for: 'bdsm',
|
for: 'bdsm',
|
||||||
|
|
|
@ -24,7 +24,7 @@ const logger = require('./logger')(__filename);
|
||||||
|
|
||||||
const { toBaseReleases } = require('./deep');
|
const { toBaseReleases } = require('./deep');
|
||||||
const { associateAvatars, flushOrphanedMedia } = require('./media');
|
const { associateAvatars, flushOrphanedMedia } = require('./media');
|
||||||
const { fetchEntitiesBySlug, getRecursiveParent } = require('./entities');
|
const { fetchEntitiesBySlug } = require('./entities');
|
||||||
const { deleteScenes } = require('./releases');
|
const { deleteScenes } = require('./releases');
|
||||||
|
|
||||||
const slugify = require('./utils/slugify');
|
const slugify = require('./utils/slugify');
|
||||||
|
@ -159,7 +159,11 @@ function toBaseActors(actorsOrNames, release) {
|
||||||
const name = capitalize(baseName);
|
const name = capitalize(baseName);
|
||||||
const slug = slugify(name);
|
const slug = slugify(name);
|
||||||
|
|
||||||
const entity = getRecursiveParent(release?.entity);
|
// using top level parent widens the scope too much, e.g. different Gamma sites may not use the same actor database
|
||||||
|
// const entity = getRecursiveParent(release?.entity);
|
||||||
|
const entity = (release?.entity?.indepdendent && release?.entity)
|
||||||
|
|| release?.entity?.parent
|
||||||
|
|| release?.entity;
|
||||||
|
|
||||||
const baseActor = {
|
const baseActor = {
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in New Issue