From 4f3b152b17612305fe2f47e88bf9ea96a2e561bf Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 4 Feb 2026 05:38:21 +0100 Subject: [PATCH] Added SFW tag photos. --- seeds/02_sites.js | 4 ++-- seeds/04_media.js | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/seeds/02_sites.js b/seeds/02_sites.js index e112757e..92245808 100755 --- a/seeds/02_sites.js +++ b/seeds/02_sites.js @@ -8385,8 +8385,8 @@ const sites = [ tags: ['bdsm', 'milf'], parent: 'mylf', parameters: { - layout: 'organic', - endpoint: 'organic-mylfdom-ieH7cuos%20', // sic + layout: 'search', + fullEndpoint: 'mylf_dom', }, }, { diff --git a/seeds/04_media.js b/seeds/04_media.js index b41a88a9..dd82b0f8 100755 --- a/seeds/04_media.js +++ b/seeds/04_media.js @@ -573,6 +573,20 @@ const sfw = Object.entries({ ['A1v0-iH3T5A', 'Patrick Hendry'], ['iFBIdX54BOk', 'Keagan Henman'], ], + tags: [ + ['dp', 'Mr. Pugo'], + ['anal', 'Andrew Teoh'], + ['creampie', 'Sunil Lama'], + ['lesbian', 'Kelsey Curtis'], + ['facial', 'Jagoda Kondratiuk'], + ['squirting', 'Camerauthor'], + ['blowjob', 'Christine Tan'], + ['blowbang', 'William Warby'], + ['mfm', 'Seriously Low Carb'], + ['mff', 'Deon Black'], + ['gay', 'David Brooke Martin'], + ['gangbang', 'Mohamed Hassouna'], + ], }) .map(([category, photos]) => photos.map(([photo, credit], index) => ({ id: photo, @@ -1104,11 +1118,13 @@ exports.seed = (knex) => Promise.resolve() const tagMediaWithDimensions = await Promise.map(tagMedia, async (media) => { const { width, height } = await sharp(path.join('public/img', media.path)).metadata(); // size not available from filepath + const sfwMediaId = sfw.find((image) => image.id === media.tagSlug)?.id; return { ...media, width, height, + sfwMediaId, }; }, { concurrency: 20, @@ -1124,6 +1140,7 @@ exports.seed = (knex) => Promise.resolve() width: media.width, height: media.height, comment: media.comment, + sfw_media_id: media.sfwMediaId, entity_id: entitiesBySlug[media.entitySlug]?.id, })), 'path', knex); @@ -1148,8 +1165,6 @@ exports.seed = (knex) => Promise.resolve() media_id: mediaIdsByPath[photo.path], })); - console.log(tagPosterEntries); - await Promise.all([ upsert('tags_posters', tagPosterEntries, 'tag_id', knex), upsert('tags_photos', tagPhotoEntries, ['tag_id', 'media_id'], knex),