diff options
Diffstat (limited to 'src/components/status_body')
| -rw-r--r-- | src/components/status_body/status_body.js | 8 | ||||
| -rw-r--r-- | src/components/status_body/status_body.vue | 12 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js index c2edb601..2fc9abbf 100644 --- a/src/components/status_body/status_body.js +++ b/src/components/status_body/status_body.js @@ -30,7 +30,8 @@ const StatusContent = { // if this was computed at upper level it can be passed here, otherwise // it will be in this component 'headTailLinks', - 'hideFirstMentions' + 'hideFirstMentions', + 'hideLastMentions' ], data () { return { @@ -80,9 +81,12 @@ const StatusContent = { attachmentTypes () { return this.status.attachments.map(file => fileType.fileType(file.mimetype)) }, - mentions () { + mentionsFirst () { return this.headTailLinksComputed.firstMentions }, + mentionsLast () { + return this.headTailLinksComputed.lastMentions + }, ...mapGetters(['mergedConfig']) }, components: { diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue index 4df29934..bd599a8c 100644 --- a/src/components/status_body/status_body.vue +++ b/src/components/status_body/status_body.vue @@ -49,11 +49,19 @@ :emoji="status.emojis" :handle-links="true" :greentext="mergedConfig.greentext" + :hide-first-mentions="hideFirstMentions" + :hide-last-mentions="hideLastMentions" > <template v-slot:prefix> <MentionsLine - v-if="!hideFirstMentions" - :mentions="mentions" + v-if="!hideFirstMentions && mentionsFirst" + :mentions="mentionsFirst" + /> + </template> + <template v-slot:suffix> + <MentionsLine + v-if="!hideFirstMentions && mentionsLast" + :mentions="mentionsLast" /> </template> </RichContent> |
