diff --git a/assets/components/tile/actor.vue b/assets/components/tile/actor.vue index 77f358d2..4f568900 100644 --- a/assets/components/tile/actor.vue +++ b/assets/components/tile/actor.vue @@ -1,101 +1,101 @@ diff --git a/assets/js/curate.js b/assets/js/curate.js index 31550a2d..22c2dc48 100644 --- a/assets/js/curate.js +++ b/assets/js/curate.js @@ -8,8 +8,6 @@ function curateActor(actor, release) { }, }; - if (actor.avatar) curatedActor.avatar = actor.avatar.media; - if (release && release.date && curatedActor.birthdate) { curatedActor.ageThen = dayjs(release.date).diff(actor.birthdate, 'year'); } diff --git a/assets/js/fragments.js b/assets/js/fragments.js index 420519e9..a8bb6e78 100644 --- a/assets/js/fragments.js +++ b/assets/js/fragments.js @@ -37,6 +37,12 @@ const actorFields = ` birthdate: dateOfBirth age gender + avatar: avatarMedia { + id + path + thumbnail + lazy + } network { id name @@ -47,15 +53,6 @@ const actorFields = ` name alias } - actorsProfiles { - actorsAvatarByProfileId { - media { - path - thumbnail - copyright - } - } - } `; const releaseActorsFragment = ` diff --git a/src/actors.js b/src/actors.js index c433a264..ca0953e3 100644 --- a/src/actors.js +++ b/src/actors.js @@ -196,7 +196,7 @@ async function curateProfile(profile) { curatedProfile.social = Array.isArray(profile.social) ? profile.social.map((social) => { try { - const { href } = new URL(); + const { href } = new URL(social); return href; } catch (error) { logger.warn(`Profile scraper for '${profile.site.name}' returned invalid social link: ${social}`);