Applying tag filters to URL.

This commit is contained in:
2020-05-27 01:40:10 +02:00
parent 86377fec5f
commit 88a88227c4
16 changed files with 210 additions and 96 deletions

View File

@@ -1,6 +1,6 @@
import dayjs from 'dayjs';
function curateActor(actor, release, curateActorRelease) {
function curateActor(actor, release) {
if (!actor) {
return null;
}
@@ -53,10 +53,6 @@ function curateActor(actor, release, curateActorRelease) {
curatedActor.ageThen = dayjs(release.date).diff(actor.birthdate, 'year');
}
if (actor.releases) {
curatedActor.releases = actor.releases.map(actorRelease => curateActorRelease(actorRelease.release));
}
if (actor.aliasFor) {
curatedActor.aliasFor = curateActor(curatedActor.aliasFor);
}