Showing all unique descriptions on profile with network logo. Fixed Fame Digital scraper.
This commit is contained in:
@@ -34,7 +34,19 @@ function curateActor(actor, release, curateActorRelease) {
|
||||
.map(profile => profile.avatar)
|
||||
.filter(avatar => avatar && (!curatedActor.avatar || avatar.hash !== curatedActor.avatar.hash));
|
||||
|
||||
const descriptions = actor.profiles.reduce((acc, profile) => ({
|
||||
...acc,
|
||||
...(profile.description && {
|
||||
[profile.descriptionHash]: {
|
||||
text: profile.description,
|
||||
network: profile.network,
|
||||
site: profile.site,
|
||||
},
|
||||
}),
|
||||
}), {});
|
||||
|
||||
curatedActor.photos = Object.values(photos.reduce((acc, photo) => ({ ...acc, [photo.hash]: photo }), {}));
|
||||
curatedActor.descriptions = Object.values(descriptions);
|
||||
}
|
||||
|
||||
if (release && release.date && curatedActor.birthdate) {
|
||||
|
||||
Reference in New Issue
Block a user