From f97cdfaa2099ab4c29b980693d3caa5c828d64a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 17 Sep 2018 11:59:24 +0900 Subject: Fix #2725 --- src/remote/activitypub/misc/get-note-html.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/remote/activitypub/misc') diff --git a/src/remote/activitypub/misc/get-note-html.ts b/src/remote/activitypub/misc/get-note-html.ts index f92e91c34e..0a607bd48c 100644 --- a/src/remote/activitypub/misc/get-note-html.ts +++ b/src/remote/activitypub/misc/get-note-html.ts @@ -1,22 +1,10 @@ import { INote } from '../../../models/note'; import toHtml from '../../../mfm/html'; import parse from '../../../mfm/parse'; -import config from '../../../config'; export default function(note: INote) { let html = toHtml(parse(note.text), note.mentionedRemoteUsers); if (html == null) html = ''; - 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; } -- cgit v1.2.3-freya