Merge branch 'reply-detection' into 'develop'
Remove reply detection hack See merge request pleroma/pleroma-fe!464
This commit is contained in:
commit
85e2ca4a0a
1 changed files with 1 additions and 13 deletions
|
@ -117,19 +117,7 @@ const Status = {
|
||||||
return lengthScore > 20
|
return lengthScore > 20
|
||||||
},
|
},
|
||||||
isReply () {
|
isReply () {
|
||||||
if (this.status.in_reply_to_status_id) {
|
return !!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
|
|
||||||
},
|
},
|
||||||
hideReply () {
|
hideReply () {
|
||||||
if (this.$store.state.config.replyVisibility === 'all') {
|
if (this.$store.state.config.replyVisibility === 'all') {
|
||||||
|
|
Loading…
Reference in a new issue