summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/misc/get-note-html.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-10-08 15:37:24 +0900
committerGitHub <noreply@github.com>2018-10-08 15:37:24 +0900
commit9c170c426be01773afb15a9868ff3c278e09409c (patch)
tree0229bb52dd9197308d193f4e41bbc11d3dcb95a1 /src/remote/activitypub/misc/get-note-html.ts
parentNew translations ja-JP.yml (Norwegian) (diff)
parentfix(package): update @types/mongodb to version 3.1.10 (#2849) (diff)
downloadmisskey-9c170c426be01773afb15a9868ff3c278e09409c.tar.gz
misskey-9c170c426be01773afb15a9868ff3c278e09409c.tar.bz2
misskey-9c170c426be01773afb15a9868ff3c278e09409c.zip
Merge branch 'develop' into l10n_develop
Diffstat (limited to 'src/remote/activitypub/misc/get-note-html.ts')
-rw-r--r--src/remote/activitypub/misc/get-note-html.ts15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/remote/activitypub/misc/get-note-html.ts b/src/remote/activitypub/misc/get-note-html.ts
index 8df440930b..0a607bd48c 100644
--- a/src/remote/activitypub/misc/get-note-html.ts
+++ b/src/remote/activitypub/misc/get-note-html.ts
@@ -1,23 +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) {
- 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 += `<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>`;
- }
+ if (html == null) html = '';
return html;
}