diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-27 10:14:17 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-27 10:14:17 +0900 |
| commit | 25df56dfd0b97acfb4d6c76c9154f560f56ab150 (patch) | |
| tree | c5d6d73d802875c9a90dde464a7f8d0e4c40f072 /packages/frontend/src/utility | |
| parent | tweak locale (diff) | |
| download | misskey-25df56dfd0b97acfb4d6c76c9154f560f56ab150.tar.gz misskey-25df56dfd0b97acfb4d6c76c9154f560f56ab150.tar.bz2 misskey-25df56dfd0b97acfb4d6c76c9154f560f56ab150.zip | |
refactor
Diffstat (limited to 'packages/frontend/src/utility')
| -rw-r--r-- | packages/frontend/src/utility/extract-mentions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/utility/extract-mentions.ts b/packages/frontend/src/utility/extract-mentions.ts index d518562053..2ec9349718 100644 --- a/packages/frontend/src/utility/extract-mentions.ts +++ b/packages/frontend/src/utility/extract-mentions.ts @@ -9,7 +9,7 @@ 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 mentionNodes = mfm.extract(nodes, (node) => node.type === 'mention') as mfm.MfmMention[]; const mentions = mentionNodes.map(x => x.props); return mentions; |