Using direct parent as release actor entity instead of highest parent.

This commit is contained in:
DebaucheryLibrarian 2021-02-27 21:59:33 +01:00
parent e095d8317b
commit 8eebcae85d
6 changed files with 15 additions and 2 deletions

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

View File

@ -799,6 +799,11 @@ const tags = [
slug: 'short-hair',
group: 'hair',
},
{
name: 'sideways',
slug: 'sideways',
group: 'position',
},
{
name: 'skirt',
slug: 'skirt',
@ -1747,6 +1752,10 @@ const aliases = [
name: 'shoes',
for: 'shoes-on',
},
{
name: 'side fuck',
for: 'sideways',
},
{
name: 'slave',
for: 'bdsm',

View File

@ -24,7 +24,7 @@ const logger = require('./logger')(__filename);
const { toBaseReleases } = require('./deep');
const { associateAvatars, flushOrphanedMedia } = require('./media');
const { fetchEntitiesBySlug, getRecursiveParent } = require('./entities');
const { fetchEntitiesBySlug } = require('./entities');
const { deleteScenes } = require('./releases');
const slugify = require('./utils/slugify');
@ -159,7 +159,11 @@ function toBaseActors(actorsOrNames, release) {
const name = capitalize(baseName);
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 = {
name,