From de8dfef252d3b979814c7ede4b32cf192ffa0e2a Mon Sep 17 00:00:00 2001 From: scarlett Date: Sun, 13 Jan 2019 13:41:02 +0000 Subject: [PATCH] Remove reply detection hack --- src/components/status/status.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 73d53694e6..7d6acbac33 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -117,19 +117,7 @@ const Status = { return lengthScore > 20 }, isReply () { - if (this.status.in_reply_to_status_id) { - return true - } - // For private replies where we can't see the OP, in_reply_to_status_id will be null. - // So instead, check that the post starts with a @mention. - if (this.status.visibility === 'private') { - var textBody = this.status.text - if (this.status.summary !== null) { - textBody = textBody.substring(this.status.summary.length, textBody.length) - } - return textBody.startsWith('@') - } - return false + return !!this.status.in_reply_to_status_id }, hideReply () { if (this.$store.state.config.replyVisibility === 'all') {