From 5863952a2b0acbf6360d04d19da19eda90f3d0ee Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Apr 2019 16:41:41 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/renderer/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index 5b36366b2..58ee4fb52 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -12,7 +12,7 @@ import { Emoji } from '../../../models/entities/emoji'; import { Poll } from '../../../models/entities/poll'; export default async function renderNote(note: Note, dive = true): Promise { - const promisedFiles: Promise = note.fileIds.length > 1 + const promisedFiles: Promise = note.fileIds.length > 0 ? DriveFiles.find({ id: In(note.fileIds) }) : Promise.resolve([]);