Improved duplicate handling. Added tag photos.

This commit is contained in:
DebaucheryLibrarian
2021-02-21 22:17:25 +01:00
parent a39750d808
commit 8a739893ea
11 changed files with 11 additions and 6 deletions

View File

@@ -251,6 +251,8 @@ async function fetchLatest(entity, page, options) {
.orderByRaw('random()')
.limit(Math.floor(Math.random() * 10) + 1);
// const poster = 'sfw/kittens/thumbs/iNEXVlX-RLs.jpeg';
release.poster = `http://${config.web.host}:${config.web.port}/img/${poster}?id=${nanoid()}`; // ensure source is unique
release.photos = photos.map(photo => `http://${config.web.host}:${config.web.port}/img/${photo}?id=${nanoid()}`);
}