fileType.fileType(file.mimetype))
},
- mentionsFirst () {
- return this.headTailLinksComputed.firstMentions
- },
- mentionsLast () {
- return this.headTailLinksComputed.lastMentions
- },
...mapGetters(['mergedConfig'])
},
components: {
@@ -107,6 +98,11 @@ const StatusContent = {
this.expandingSubject = !this.expandingSubject
}
},
+ setHeadTailLinks (headTailLinks) {
+ set(this, 'headTailLinks', headTailLinks)
+ set(this, 'firstMentions', headTailLinks.firstMentions)
+ set(this, 'lastMentions', headTailLinks.lastMentions)
+ },
generateTagLink (tag) {
return `/tag/${tag}`
}
diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue
index bd599a8c..68f6701f 100644
--- a/src/components/status_body/status_body.vue
+++ b/src/components/status_body/status_body.vue
@@ -48,20 +48,21 @@
:html="status.raw_html"
:emoji="status.emojis"
:handle-links="true"
+ :hide-mentions="hideMentions"
:greentext="mergedConfig.greentext"
- :hide-first-mentions="hideFirstMentions"
- :hide-last-mentions="hideLastMentions"
+ @parseReady="setHeadTailLinks"
+ ref="text"
>
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js
index 64cc6d44..11a4974b 100644
--- a/src/components/status_content/status_content.js
+++ b/src/components/status_content/status_content.js
@@ -32,9 +32,7 @@ const StatusContent = {
'noHeading',
'fullContent',
'singleLine',
- 'hideFirstMentions',
- 'hideLastMentions',
- 'headTailLinks'
+ 'hideMentions'
],
computed: {
hideAttachments () {
@@ -94,6 +92,9 @@ const StatusContent = {
StatusBody
},
methods: {
+ setHeadTailLinks (headTailLinks) {
+ this.$emit('parseReady', headTailLinks)
+ },
setMedia () {
const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments
return () => this.$store.dispatch('setMedia', attachments)
diff --git a/src/components/status_content/status_content.vue b/src/components/status_content/status_content.vue
index c32bbbfb..feb34d2c 100644
--- a/src/components/status_content/status_content.vue
+++ b/src/components/status_content/status_content.vue
@@ -4,9 +4,8 @@