This commit is contained in:
syuilo 2018-04-07 16:14:35 +09:00
parent 7dc06b3d43
commit 93f631e358
8 changed files with 58 additions and 43 deletions

View file

@ -43,7 +43,7 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
// TODO: attachmentは必ずしも配列ではない
// TODO: ループの中でawaitはすべきでない
note.attachment.forEach(async media => {
const created = await createImage(resolver, note.actor, media);
const created = await createImage(note.actor, media);
media.push(created);
});
}