summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/misc/get-note-html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/misc/get-note-html.ts')
-rw-r--r--src/remote/activitypub/misc/get-note-html.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/remote/activitypub/misc/get-note-html.ts b/src/remote/activitypub/misc/get-note-html.ts
deleted file mode 100644
index a24ec43a69..0000000000
--- a/src/remote/activitypub/misc/get-note-html.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import * as mfm from 'mfm-js';
-import { fnNameList } from '@/mfm/fn-name-list';
-import { Note } from '@/models/entities/note';
-import { toHtml } from '../../../mfm/to-html';
-
-export default function(note: Note) {
- let html = note.text ? toHtml(mfm.parse(note.text, { fnNameList }), JSON.parse(note.mentionedRemoteUsers)) : null;
- if (html == null) html = '<p>.</p>';
-
- return html;
-}