aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_body/status_body.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/status_body/status_body.vue')
-rw-r--r--src/components/status_body/status_body.vue25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue
index 68f6701f..799e812d 100644
--- a/src/components/status_body/status_body.vue
+++ b/src/components/status_body/status_body.vue
@@ -38,10 +38,11 @@
>
{{ $t("general.show_more") }}
</button>
- <span
- class="text-wrapper"
- v-if="!hideSubjectStatus && !(singleLine && status.summary_html)"
- >
+ <span v-if="!hideSubjectStatus && !(singleLine && status.summary_html)">
+ <MentionsLine
+ v-if="!hideMentions && firstMentions && firstMentions.length > 0"
+ :mentions="firstMentions"
+ />
<RichContent
:class="{ '-single-line': singleLine }"
class="text media-body"
@@ -53,19 +54,11 @@
@parseReady="setHeadTailLinks"
ref="text"
>
- <template v-slot:prefix>
- <MentionsLine
- v-if="!hideMentions && firstMentions && firstMentions.length > 0"
- :mentions="firstMentions"
- />
- </template>
- <template v-slot:suffix>
- <MentionsLine
- v-if="!hideMentions && lastMentions.length > 0 && firstMentions.length === 0"
- :mentions="lastMentions"
- />
- </template>
</RichContent>
+ <MentionsLine
+ v-if="!hideMentions && lastMentions.length > 0 && firstMentions.length === 0"
+ :mentions="lastMentions"
+ />
</span>
<button