Preserving database meta fields in profile interpolation.

This commit is contained in:
2026-06-09 03:13:36 +02:00
parent 5a195b8f5a
commit 3d6c5e2a52

View File

@@ -80,7 +80,7 @@ function mergeMainProfile(profile, mainProfile) {
export async function interpolateProfiles(actorIdsOrNames, context, options = {}) {
const profiles = await fetchProfiles(actorIdsOrNames, context);
const columns = await context.knex.table('actors').columnInfo().then((table) => Object.keys(table));
const preservedKeys = ['id', 'name', 'slug', 'entity_id', 'entry_id'];
const preservedKeys = ['id', 'name', 'slug', 'entity_id', 'entry_id', 'alias_for', 'created_at', 'batch_id', 'updated_at', 'comment'];
const profilesByActorId = profiles.reduce((acc, profile) => ({
...acc,