mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 03:40:25 +01:00
fix
This commit is contained in:
parent
5c2674fd2e
commit
d43a7b9121
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ export function createAiScriptEnv(opts) {
|
||||||
return await Promise.all(ast.map(async (node) => {
|
return await Promise.all(ast.map(async (node) => {
|
||||||
const out = deepClone(node);
|
const out = deepClone(node);
|
||||||
if (out.type === 'text') {
|
if (out.type === 'text') {
|
||||||
const res = (await opts.topCall(fn, [values.STR(out.props.text)]));
|
const res = await opts.topCall(fn, [values.STR(out.props.text)]);
|
||||||
utils.assertString(res);
|
utils.assertString(res);
|
||||||
out.props.text = res.value;
|
out.props.text = res.value;
|
||||||
} else if (out.type !== 'plain' && 'children' in out && out.children != null && out.children.length > 0) {
|
} else if (out.type !== 'plain' && 'children' in out && out.children != null && out.children.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue