mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 09:46:06 +02:00
This commit is contained in:
@@ -8,8 +8,8 @@ import User from '../../../models/user';
|
||||
import toHtml from '../misc/get-note-html';
|
||||
|
||||
export default async function renderNote(note: INote, dive = true): Promise<any> {
|
||||
const promisedFiles: Promise<IDriveFile[]> = note.mediaIds
|
||||
? DriveFile.find({ _id: { $in: note.mediaIds } })
|
||||
const promisedFiles: Promise<IDriveFile[]> = note.fileIds
|
||||
? DriveFile.find({ _id: { $in: note.fileIds } })
|
||||
: Promise.resolve([]);
|
||||
|
||||
let inReplyTo;
|
||||
|
||||
Reference in New Issue
Block a user