Improved profile scrapers. Sorting avatars on actor page by index.
This commit is contained in:
@@ -11,7 +11,9 @@ const { createActorMediaDirectory, storeAvatars } = require('./media');
|
||||
async function curateActor(actor) {
|
||||
const [aliases, avatars] = await Promise.all([
|
||||
knex('actors').where({ alias_for: actor.id }),
|
||||
knex('media').where({ domain: 'actors', target_id: actor.id }),
|
||||
knex('media')
|
||||
.where({ domain: 'actors', target_id: actor.id })
|
||||
.orderBy('index'),
|
||||
]);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user