import { INote } from '../../../models/note'; import toHtml from '../../../mfm/html'; import parse from '../../../mfm/parse'; import config from '../../../config'; export default function(note: INote) { if (note.text == null) return null; let html = toHtml(parse(note.text), note.mentionedRemoteUsers); if (note.poll != null) { const url = `${config.url}/notes/${note._id}`; // TODO: i18n html += `

【Misskeyで投票を見る】

`; } if (note.renoteId != null) { const url = `${config.url}/notes/${note.renoteId}`; html += `

RE: ${url}

`; } return html; }