This commit is contained in:
syuilo 2019-04-08 16:41:41 +09:00
parent 0cb6f20904
commit 5863952a2b

View File

@ -12,7 +12,7 @@ import { Emoji } from '../../../models/entities/emoji';
import { Poll } from '../../../models/entities/poll'; import { Poll } from '../../../models/entities/poll';
export default async function renderNote(note: Note, dive = true): Promise<any> { export default async function renderNote(note: Note, dive = true): Promise<any> {
const promisedFiles: Promise<DriveFile[]> = note.fileIds.length > 1 const promisedFiles: Promise<DriveFile[]> = note.fileIds.length > 0
? DriveFiles.find({ id: In(note.fileIds) }) ? DriveFiles.find({ id: In(note.fileIds) })
: Promise.resolve([]); : Promise.resolve([]);