mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-26 04:25:14 +02:00
Update object.ts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user