From 5c1789dbc7651782d0cc41b31aceac47f283fca3 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 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