Update object.ts

This commit is contained in:
syuilo 2026-05-14 17:20:11 +09:00
commit 267dc5fb64

View file

@ -174,7 +174,11 @@ export function convertRawOptions<OpSc extends OptionsSchema>(schema: OpSc, raw:
}
const file = attachments.files.find(f => f.id === v);
if (file != null) {
converted[k] = { url: file.url };
if (file.url.startsWith('http://syu-win.local:3000/')) { // debug
converted[k] = { url: file.url.replace('http://syu-win.local:3000/', 'https://local-mi.syuilo.dev/') };
} else {
converted[k] = { url: file.url };
}
} else {
converted[k] = null;
}