mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-01 23:27:25 +00:00
Fix: url-preview (#3397)
This commit is contained in:
parent
60e10d4efa
commit
93f13ffc8e
4 changed files with 8 additions and 8 deletions
|
@ -79,8 +79,8 @@ export default (opts: Opts = {}) => ({
|
||||||
if (this.appearNote.text) {
|
if (this.appearNote.text) {
|
||||||
const ast = parse(this.appearNote.text);
|
const ast = parse(this.appearNote.text);
|
||||||
return unique(ast
|
return unique(ast
|
||||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
.filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent))
|
||||||
.map(t => t.url));
|
.map(t => t.props.url));
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@ export default Vue.extend({
|
||||||
if (this.message.text) {
|
if (this.message.text) {
|
||||||
const ast = parse(this.message.text);
|
const ast = parse(this.message.text);
|
||||||
return unique(ast
|
return unique(ast
|
||||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
.filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent))
|
||||||
.map(t => t.url));
|
.map(t => t.props.url));
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,8 +151,8 @@ export default Vue.extend({
|
||||||
if (this.appearNote.text) {
|
if (this.appearNote.text) {
|
||||||
const ast = parse(this.appearNote.text);
|
const ast = parse(this.appearNote.text);
|
||||||
return unique(ast
|
return unique(ast
|
||||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
.filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent))
|
||||||
.map(t => t.url));
|
.map(t => t.props.url));
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,8 +143,8 @@ export default Vue.extend({
|
||||||
if (this.appearNote.text) {
|
if (this.appearNote.text) {
|
||||||
const ast = parse(this.appearNote.text);
|
const ast = parse(this.appearNote.text);
|
||||||
return unique(ast
|
return unique(ast
|
||||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
.filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent))
|
||||||
.map(t => t.url));
|
.map(t => t.props.url));
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue