From 02b07c1b5ba678499f1274c86f06f4675e93aec7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Nov 2018 04:30:32 +0900 Subject: [PATCH] Update note-mixin.ts --- src/client/app/common/scripts/note-mixin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index 205c6dc02..9e5fa0f5f 100644 --- a/src/client/app/common/scripts/note-mixin.ts +++ b/src/client/app/common/scripts/note-mixin.ts @@ -78,6 +78,7 @@ export default (opts: Opts = {}) => ({ urls(): string[] { if (this.appearNote.text) { const ast = parse(this.appearNote.text); + // TODO: 再帰的にURL要素がないか調べる return unique(ast .filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent)) .map(t => t.props.url));