diff options
| author | Henry Jameson <me@hjkos.com> | 2021-08-12 19:37:04 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-08-12 19:37:04 +0300 |
| commit | add5921b8b3579b153bef6ee2b1916227016d200 (patch) | |
| tree | c5fc2ce90fa2cc43ca036c50dec464c5d9142264 /src | |
| parent | 2182af405864cffcc7ddca8d373cc14f38770c9e (diff) | |
fix tests, add performance test (skipped, doesn't assert anything),
tweak max mentions count
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/mention_link/mention_link.js | 2 | ||||
| -rw-r--r-- | src/components/mentions_line/mentions_line.js | 2 | ||||
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/components/mention_link/mention_link.js b/src/components/mention_link/mention_link.js index a60a8040..4d27fe6d 100644 --- a/src/components/mention_link/mention_link.js +++ b/src/components/mention_link/mention_link.js @@ -41,7 +41,7 @@ const MentionLink = { }, computed: { user () { - return this.url && this.$store.getters.findUserByUrl(this.url) + return this.url && this.$store && this.$store.getters.findUserByUrl(this.url) }, isYou () { // FIXME why user !== currentUser??? diff --git a/src/components/mentions_line/mentions_line.js b/src/components/mentions_line/mentions_line.js index 33e25391..83eeea4c 100644 --- a/src/components/mentions_line/mentions_line.js +++ b/src/components/mentions_line/mentions_line.js @@ -15,7 +15,7 @@ const MentionsLine = { }, computed: { limit () { - return 2 + return 5 }, mentionsComputed () { return this.mentions.slice(0, this.limit) diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 4b7d4d37..32b737ec 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -159,7 +159,7 @@ export default Vue.component('RichContent', { return item // We'll handle it later } case 'span': - if (attrs['class'].includes('h-card')) { + if (this.handleLinks && attrs['class'] && attrs['class'].includes('h-card')) { return ['', children.map(processItem), ''] } } |
