1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-12 05:38:51 +09:00
This commit is contained in:
syuilo 2018-04-07 15:52:42 +09:00
parent c77013ab3e
commit 81d19195cf

View File

@ -40,6 +40,7 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
const media = [];
if ('attachment' in note && note.attachment != null) {
// TODO: attachmentは必ずしもImageではない
// TODO: attachmentは必ずしも配列ではない
// TODO: ループの中でawaitはすべきでない
note.attachment.forEach(async media => {
const created = await createImage(resolver, note.actor, media);