aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_body
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-15 02:55:45 +0300
committerHenry Jameson <me@hjkos.com>2021-08-15 02:55:45 +0300
commit68b432318198b6835790112d51f0572e19238158 (patch)
tree0e42dfe43ffb88596842af839b00b5da99616a2d /src/components/status_body
parent7d67e8f1cccd1ef924a97b8285756590ac29224e (diff)
prevent infinite update loops
Diffstat (limited to 'src/components/status_body')
-rw-r--r--src/components/status_body/status_body.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js
index b941765c..ef542307 100644
--- a/src/components/status_body/status_body.js
+++ b/src/components/status_body/status_body.js
@@ -33,7 +33,8 @@ const StatusContent = {
showingLongSubject: false,
// not as computed because it sets the initial state which will be changed later
expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject,
- postLength: this.status.text.length
+ postLength: this.status.text.length,
+ parseReadyDone: false
}
},
computed: {
@@ -86,6 +87,8 @@ const StatusContent = {
},
methods: {
onParseReady (event) {
+ if (this.parseReadyDone) return
+ this.parseReadyDone = true
this.$emit('parseReady', event)
const { writtenMentions, invisibleMentions } = event
writtenMentions