summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/extract-mentions.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-27 14:36:33 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-27 14:36:33 +0900
commit9384f5399da39e53855beb8e7f8ded1aa56bf72e (patch)
treece5959571a981b9c4047da3c7b3fd080aa44222c /packages/client/src/scripts/extract-mentions.ts
parentwip: retention for dashboard (diff)
downloadmisskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.tar.gz
misskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.tar.bz2
misskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.zip
rename: client -> frontend
Diffstat (limited to 'packages/client/src/scripts/extract-mentions.ts')
-rw-r--r--packages/client/src/scripts/extract-mentions.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/client/src/scripts/extract-mentions.ts b/packages/client/src/scripts/extract-mentions.ts
deleted file mode 100644
index cc19b161a8..0000000000
--- a/packages/client/src/scripts/extract-mentions.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// test is located in test/extract-mentions
-
-import * as mfm from 'mfm-js';
-
-export function extractMentions(nodes: mfm.MfmNode[]): mfm.MfmMention['props'][] {
- // TODO: 重複を削除
- const mentionNodes = mfm.extract(nodes, (node) => node.type === 'mention');
- const mentions = mentionNodes.map(x => x.props);
-
- return mentions;
-}