diff options
Diffstat (limited to 'packages/frontend/src/utility/extract-url-from-mfm.ts')
| -rw-r--r-- | packages/frontend/src/utility/extract-url-from-mfm.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/utility/extract-url-from-mfm.ts b/packages/frontend/src/utility/extract-url-from-mfm.ts index 570823d5b5..48243dff36 100644 --- a/packages/frontend/src/utility/extract-url-from-mfm.ts +++ b/packages/frontend/src/utility/extract-url-from-mfm.ts @@ -13,7 +13,7 @@ const removeHash = (x: string) => x.replace(/#[^#]*$/, ''); export function extractUrlFromMfm(nodes: mfm.MfmNode[], respectSilentFlag = true): string[] { const urlNodes = mfm.extract(nodes, (node) => { return (node.type === 'url') || (node.type === 'link' && (!respectSilentFlag || !node.props.silent)); - }); + }) as mfm.MfmUrl[]; const urls: string[] = unique(urlNodes.map(x => x.props.url)); return urls.reduce((array, url) => { |