diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-11 11:05:28 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-11 11:05:28 +0300 |
| commit | 255f47fe56a1f9db2ca669aff1d9bd9cdde5dd8b (patch) | |
| tree | ab618bc79deef10ce22ebcfd1abbbca26f33ef90 /src/components/status_body | |
| parent | f883d2f75cd3c404115bd2c98b6d3c8d7ff10ef6 (diff) | |
fix infinite loop
Diffstat (limited to 'src/components/status_body')
| -rw-r--r-- | src/components/status_body/status_body.vue | 25 |
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 |
