diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-10 13:01:00 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-10 13:01:00 +0300 |
| commit | 394fd462dc48654ba7743bb9c2ac378f98f75bd4 (patch) | |
| tree | cd358e449360f170ac212be4bf0fbb12149964da /src/components/status_body | |
| parent | c6c478f4cf123d9510e1e67a852cad0398d08052 (diff) | |
proper cachin of headTailLinks, show mentions in notificaitons always
Diffstat (limited to 'src/components/status_body')
| -rw-r--r-- | src/components/status_body/status_body.js | 15 | ||||
| -rw-r--r-- | src/components/status_body/status_body.vue | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js index dbabd208..c2edb601 100644 --- a/src/components/status_body/status_body.js +++ b/src/components/status_body/status_body.js @@ -29,14 +29,18 @@ const StatusContent = { 'singleLine', // if this was computed at upper level it can be passed here, otherwise // it will be in this component - 'headTailLinks' + 'headTailLinks', + 'hideFirstMentions' ], data () { return { showingTall: this.fullContent || (this.inConversation && this.focused), showingLongSubject: false, // not as computed because it sets the initial state which will be changed later - expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject + expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject, + headTailLinksComputed: this.headTailLinks + ? this.headTailLinks + : getHeadTailLinks(this.status.raw_html) } }, computed: { @@ -76,13 +80,6 @@ const StatusContent = { attachmentTypes () { return this.status.attachments.map(file => fileType.fileType(file.mimetype)) }, - mentionsOwnLine () { - return this.mergedConfig.mentionsOwnLine - }, - headTailLinksComputed () { - if (this.headTailLinks) return this.headTailLinks - return getHeadTailLinks(this.status.raw_html) - }, mentions () { return this.headTailLinksComputed.firstMentions }, diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue index ff919211..3c291cf6 100644 --- a/src/components/status_body/status_body.vue +++ b/src/components/status_body/status_body.vue @@ -52,7 +52,7 @@ > <template v-slot:prefix> <MentionsLine - v-if="!mentionsOwnLine" + v-if="!hideFirstMentions" :mentions="mentions" class="mentions-line" /> |
