mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update object.ts
This commit is contained in:
parent
ab02a99a0e
commit
267dc5fb64
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue