Added descriptions to actor profile page, using profiles for secondary photos.

This commit is contained in:
2024-06-07 05:20:13 +02:00
parent e691aedc73
commit c33ea6064e
5 changed files with 35 additions and 55 deletions

View File

@@ -8,27 +8,10 @@ import { fetchActorsById, curateActor, sortActorsByGender } from './actors.js';
import { fetchTagsById } from './tags.js';
import { fetchEntitiesById } from './entities.js';
import { curateStash } from './stashes.js';
import { curateMedia } from './media.js';
import escape from '../utils/escape-manticore.js';
import promiseProps from '../utils/promise-props.js';
function curateMedia(media) {
if (!media) {
return null;
}
return {
id: media.id,
path: media.path,
thumbnail: media.thumbnail,
lazy: media.lazy,
hash: media.hash,
isS3: media.is_s3,
width: media.width,
height: media.height,
index: media.index,
};
}
function curateScene(rawScene, assets) {
if (!rawScene) {
return null;