diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-17 11:59:24 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-17 11:59:24 +0900 |
| commit | f97cdfaa2099ab4c29b980693d3caa5c828d64a4 (patch) | |
| tree | 86d726c6a08b12a864a369911199fdd4a7013ea8 /src/remote/activitypub/misc | |
| parent | Add untilId param (diff) | |
| download | sharkey-f97cdfaa2099ab4c29b980693d3caa5c828d64a4.tar.gz sharkey-f97cdfaa2099ab4c29b980693d3caa5c828d64a4.tar.bz2 sharkey-f97cdfaa2099ab4c29b980693d3caa5c828d64a4.zip | |
Fix #2725
Diffstat (limited to 'src/remote/activitypub/misc')
| -rw-r--r-- | src/remote/activitypub/misc/get-note-html.ts | 12 |
1 files changed, 0 insertions, 12 deletions
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 += `<p><a href="${url}">【Misskeyで投票を見る】</a></p>`; - } - - if (note.renoteId != null) { - const url = `${config.url}/notes/${note.renoteId}`; - html += `<p>RE: <a href="${url}">${url}</a></p>`; - } - return html; } |