mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 11:56:43 -06:00
Add todos
This commit is contained in:
parent
9c15c94f80
commit
0ecbafe5eb
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ async function createNote(resolver: Resolver, actor: IRemoteUser, note) {
|
||||||
|
|
||||||
const media = [];
|
const media = [];
|
||||||
if ('attachment' in note && note.attachment != null) {
|
if ('attachment' in note && note.attachment != null) {
|
||||||
|
// TODO: attachmentは必ずしもImageではない
|
||||||
|
// TODO: ループの中でawaitはすべきでない
|
||||||
note.attachment.forEach(async media => {
|
note.attachment.forEach(async media => {
|
||||||
const created = await createImage(resolver, note.actor, media);
|
const created = await createImage(resolver, note.actor, media);
|
||||||
media.push(created);
|
media.push(created);
|
||||||
|
|
Loading…
Reference in a new issue