commit: 68b432318198b6835790112d51f0572e19238158
parent 7d67e8f1cccd1ef924a97b8285756590ac29224e
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 15 Aug 2021 02:55:45 +0300
prevent infinite update loops
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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