From 68b432318198b6835790112d51f0572e19238158 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Aug 2021 02:55:45 +0300 Subject: [PATCH] prevent infinite update loops --- src/components/status_body/status_body.js | 5 ++++- 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 index b941765cf0..ef54230762 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