Added actors admin panel with bulk merge. Fixed merge failing if source and target actor have conflicting network profiles.
This commit is contained in:
19
pages/admin/actors/+onBeforeRender.js
Normal file
19
pages/admin/actors/+onBeforeRender.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { fetchActors } from '#/src/actors.js';
|
||||
|
||||
export default async function onBeforeRender(pageContext) {
|
||||
const { actors } = await fetchActors({
|
||||
query: pageContext.urlParsed.search.q,
|
||||
}, {
|
||||
limit: 100,
|
||||
// order: pageContext.urlParsed.search.order?.split('.') || ['likes', 'desc'],
|
||||
}, pageContext.user);
|
||||
|
||||
return {
|
||||
pageContext: {
|
||||
title: 'Actors',
|
||||
pageProps: {
|
||||
actors,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user