From 9d58a2febbfe9b2ea010b9edea8a594835736285 Mon Sep 17 00:00:00 2001 From: mei23 Date: Mon, 21 Jan 2019 05:38:47 +0900 Subject: [PATCH] fix error --- src/remote/activitypub/renderer/note.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index ae2265f91c..7fa0cc6a09 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -5,10 +5,9 @@ import renderEmoji from './emoji'; import config from '../../../config'; import DriveFile, { IDriveFile } from '../../../models/drive-file'; import Note, { INote } from '../../../models/note'; -import User, { ILocalUser } from '../../../models/user'; +import User from '../../../models/user'; import toHtml from '../misc/get-note-html'; import Emoji, { IEmoji } from '../../../models/emoji'; -import renderQuestion from './question'; export default async function renderNote(note: INote, dive = true): Promise { const promisedFiles: Promise = note.fileIds @@ -109,7 +108,7 @@ export default async function renderNote(note: INote, dive = true): Promise // Provides choices as text for AP if (note.poll != null) { - const cs = note.poll.choices.map(c => `${c.id}\uFE0E: ${c.text}`); + const cs = note.poll.choices.map(c => `${c.id}\uFE0E ${c.text}`); apText += '\n'; apText += cs.join('\n'); }