Integrated Manticore sync, assuming responsibility from traxxx core/legacy.

This commit is contained in:
2026-06-08 05:18:11 +02:00
parent a048970be6
commit 1bc7dd3a43
15 changed files with 776 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ import initLogger from './logger.js';
import { curateRevision } from './revisions.js';
import { getAffiliateSceneUrl } from './affiliates.js';
import { censor } from './censor.js';
import { syncScenes } from './sync.js';
const logger = initLogger();
const mj = new MerkleJson();
@@ -888,6 +889,10 @@ async function applySceneRevision(revisionIds, reqUser) {
throw error;
});
}, Promise.resolve());
const sceneIds = Array.from(new Set(revisions.map((revision) => revision.scene_id)));
await syncScenes(sceneIds);
}
export async function reviewSceneRevision(revisionId, isApproved, { feedback }, reqUser) {