aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2019-01-15 20:15:28 +0000
committerlambda <pleromagit@rogerbraun.net>2019-01-15 20:15:28 +0000
commit85e2ca4a0a5e74a2b38c5f7ccea5288fbebb2cfe (patch)
tree3366a977186011b07a3e6143fad7a98edf91c9ed
parent52579b09b17ff7260dc64b673545fb4690aed939 (diff)
parentde8dfef252d3b979814c7ede4b32cf192ffa0e2a (diff)
Merge branch 'reply-detection' into 'develop'
Remove reply detection hack See merge request pleroma/pleroma-fe!464
-rw-r--r--src/components/status/status.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 73d53694..7d6acbac 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') {