diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 04:30:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 04:30:32 +0900 |
| commit | 02b07c1b5ba678499f1274c86f06f4675e93aec7 (patch) | |
| tree | f18c8e6471e2fe34ce426771b596a87c710593b5 /src/client/app/common/scripts/note-mixin.ts | |
| parent | Refactor (diff) | |
| download | sharkey-02b07c1b5ba678499f1274c86f06f4675e93aec7.tar.gz sharkey-02b07c1b5ba678499f1274c86f06f4675e93aec7.tar.bz2 sharkey-02b07c1b5ba678499f1274c86f06f4675e93aec7.zip | |
Update note-mixin.ts
Diffstat (limited to 'src/client/app/common/scripts/note-mixin.ts')
| -rw-r--r-- | src/client/app/common/scripts/note-mixin.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index 205c6dc02b..9e5fa0f5f5 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)); |