diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-12-20 19:41:04 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-12-20 19:42:10 +0900 |
| commit | e9f8897fe28249642d47dd1ecf3e6a76b552ddf5 (patch) | |
| tree | c64445f671f782ae2a08e149400b1297f99e5eae /src/client/app/common/scripts/note-mixin.ts | |
| parent | Fix overlap of birthday label on datepicker (#3697) (diff) | |
| download | sharkey-e9f8897fe28249642d47dd1ecf3e6a76b552ddf5.tar.gz sharkey-e9f8897fe28249642d47dd1ecf3e6a76b552ddf5.tar.bz2 sharkey-e9f8897fe28249642d47dd1ecf3e6a76b552ddf5.zip | |
Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
Diffstat (limited to 'src/client/app/common/scripts/note-mixin.ts')
| -rw-r--r-- | src/client/app/common/scripts/note-mixin.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index 36b8ca32c1..dea36cd2a5 100644 --- a/src/client/app/common/scripts/note-mixin.ts +++ b/src/client/app/common/scripts/note-mixin.ts @@ -80,8 +80,8 @@ export default (opts: Opts = {}) => ({ const ast = parse(this.appearNote.text); // TODO: 再帰的にURL要素がないか調べる return unique(ast - .filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.props.silent)) - .map(t => t.props.url)); + .filter(t => ((t.node.type == 'url' || t.node.type == 'link') && t.node.props.url && !t.node.props.silent)) + .map(t => t.node.props.url)); } else { return null; } |